Package net.minecraftforge.event.entity
Class EntityEvent.EnteringChunk
- java.lang.Object
-
- net.minecraftforge.eventbus.api.Event
-
- net.minecraftforge.event.entity.EntityEvent
-
- net.minecraftforge.event.entity.EntityEvent.EnteringChunk
-
- Enclosing class:
- EntityEvent
public static class EntityEvent.EnteringChunk extends EntityEvent
EnteringChunk is fired when an Entity enters a chunk.
This event is fired whenever vanilla Minecraft determines that an entity
is entering a chunk inChunk.addEntity(net.minecraft.entity.Entity)
This event is notCancelable
.
This event does not have a result.Event.HasResult
This event is fired on theMinecraftForge.EVENT_BUS
.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.minecraftforge.event.entity.EntityEvent
EntityEvent.CanUpdate, EntityEvent.EnteringChunk, EntityEvent.EntityConstructing, EntityEvent.Size
-
-
Constructor Summary
Constructors Constructor Description EnteringChunk(Entity entity, int newChunkX, int newChunkZ, int oldChunkX, int oldChunkZ)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
Methods inherited from class net.minecraftforge.event.entity.EntityEvent
getEntity
-
-
-
-
Constructor Detail
-
EnteringChunk
public EnteringChunk(Entity entity, int newChunkX, int newChunkZ, int oldChunkX, int oldChunkZ)
-
-
Method Detail
-
getNewChunkX
public int getNewChunkX()
-
setNewChunkX
public void setNewChunkX(int newChunkX)
-
getNewChunkZ
public int getNewChunkZ()
-
setNewChunkZ
public void setNewChunkZ(int newChunkZ)
-
getOldChunkX
public int getOldChunkX()
-
setOldChunkX
public void setOldChunkX(int oldChunkX)
-
getOldChunkZ
public int getOldChunkZ()
-
setOldChunkZ
public void setOldChunkZ(int oldChunkZ)
-
-