|
||||||||||
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
Method Summary | |
---|---|
void |
bindEntity(Entity entity)
Bind the entity to the ticket for ForgeChunkManager.Type.ENTITY type tickets. |
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 |
getPlayerName()
Get the player associated with this ticket |
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 |
Method Detail |
---|
public void setChunkListDepth(int depth)
depth
- The new depth to setpublic 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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |