Interface EntityEvent.EnterChunk
- Enclosing interface:
- EntityEvent
public static interface EntityEvent.EnterChunk
-
Method Summary
Modifier and TypeMethodDescriptionvoidenterChunk(net.minecraft.world.entity.Entity entity, int chunkX, int chunkZ, int prevX, int prevZ) Invoked whenever an entity enters a chunk.
-
Method Details
-
enterChunk
void enterChunk(net.minecraft.world.entity.Entity entity, int chunkX, int chunkZ, int prevX, int prevZ) Invoked whenever an entity enters a chunk. Equivalent to Forge'sEnteringChunkevent.- Parameters:
entity- The entity moving to a different chunk.chunkX- The chunk x-coordinate.chunkZ- The chunk z-coordinate.prevX- The previous chunk x-coordinate.prevZ- The previous chunk z-coordinate.
-