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
EnteringChunk is fired when an Entity enters a chunk.
This event is fired whenever vanilla Minecraft determines that an entity
is entering a chunk in
This event is not
This event does not have a result.
This event is fired on the
This event is fired whenever vanilla Minecraft determines that an entity
is entering a chunk in
Chunk.addEntity(net.minecraft.entity.Entity)
This event is not
Cancelable
.This event does not have a result.
Event.HasResult
This event is fired on the
MinecraftForge.EVENT_BUS
.-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraftforge.event.entity.EntityEvent
EntityEvent.CanUpdate, EntityEvent.EnteringChunk, EntityEvent.EntityConstructing, EntityEvent.Size
Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
Field Summary
-
Constructor Summary
ConstructorDescriptionEnteringChunk
(Entity entity, int newChunkX, int newChunkZ, int oldChunkX, int oldChunkZ) -
Method Summary
Modifier and TypeMethodDescriptionint
int
int
int
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
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getParentListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
-
Field Details
-
newChunkX
private int newChunkX -
newChunkZ
private int newChunkZ -
oldChunkX
private int oldChunkX -
oldChunkZ
private int oldChunkZ
-
-
Constructor Details
-
EnteringChunk
-
-
Method Details
-
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)
-