|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.minecraftforge.common.ForgeChunkManager.Ticket
public static class ForgeChunkManager.Ticket
Field Summary | |
---|---|
World |
world
|
Method Summary | |
---|---|
void |
bindEntity(Entity entity)
Bind the entity to the ticket for ForgeChunkManager.Type.ENTITY type tickets. |
com.google.common.collect.ImmutableSet |
getChunkList()
Gets a list of requested chunks for this ticket. |
int |
getChunkListDepth()
Gets the current max depth for this ticket. |
Entity |
getEntity()
Get the entity associated with this ForgeChunkManager.Type.ENTITY type ticket |
int |
getMaxChunkListDepth()
Get the maximum chunk depth size |
NBTTagCompound |
getModData()
Retrieve the NBTTagCompound that stores mod specific data for the chunk ticket. |
String |
getModId()
Get the associated mod id |
String |
getPlayerName()
Get the player associated with this ticket |
ForgeChunkManager.Type |
getType()
Gets the ticket type |
boolean |
isPlayerTicket()
Is this a player associated ticket rather than a mod associated ticket? |
void |
setChunkListDepth(int depth)
The chunk list depth can be manipulated up to the maximal grant allowed for the mod. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public final World world
Method Detail |
---|
public void setChunkListDepth(int depth)
depth
- The new depth to setpublic int getChunkListDepth()
public int getMaxChunkListDepth()
public void bindEntity(Entity entity)
ForgeChunkManager.Type.ENTITY
type tickets. Other types will throw a runtime exception.
entity
- The entity to bindpublic NBTTagCompound getModData()
NBTTagCompound
that stores mod specific data for the chunk ticket.
Example data to store would be a TileEntity or Block location. This is persisted with the ticket and
provided to the ForgeChunkManager.LoadingCallback
for the mod. It is recommended to use this to recover
useful state information for the forced chunks.
public Entity getEntity()
ForgeChunkManager.Type.ENTITY
type ticket
public boolean isPlayerTicket()
public String getPlayerName()
public String getModId()
public ForgeChunkManager.Type getType()
public com.google.common.collect.ImmutableSet getChunkList()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |