public static class EntityEvent.EnteringChunk extends EntityEvent
Chunk.addEntity(net.minecraft.entity.Entity)
Cancelable
.HasResult
MinecraftForge.EVENT_BUS
.EntityEvent.CanUpdate, EntityEvent.EnteringChunk, EntityEvent.EntityConstructing
Event.HasResult, Event.Result
Modifier and Type | Field and Description |
---|---|
private int |
newChunkX |
private int |
newChunkZ |
private int |
oldChunkX |
private int |
oldChunkZ |
Constructor and Description |
---|
EnteringChunk(Entity entity,
int newChunkX,
int newChunkZ,
int oldChunkX,
int oldChunkZ) |
Modifier and Type | Method and Description |
---|---|
int |
getNewChunkX() |
int |
getNewChunkZ() |
int |
getOldChunkX() |
int |
getOldChunkZ() |
void |
setNewChunkX(int newChunkX) |
void |
setNewChunkZ(int newChunkZ) |
void |
setOldChunkX(int oldChunkX) |
void |
setOldChunkZ(int oldChunkZ) |
getEntity
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
private int newChunkX
private int newChunkZ
private int oldChunkX
private int oldChunkZ
public EnteringChunk(Entity entity, int newChunkX, int newChunkZ, int oldChunkX, int oldChunkZ)
public int getNewChunkX()
public void setNewChunkX(int newChunkX)
public int getNewChunkZ()
public void setNewChunkZ(int newChunkZ)
public int getOldChunkX()
public void setOldChunkX(int oldChunkX)
public int getOldChunkZ()
public void setOldChunkZ(int oldChunkZ)