Interface EntityEvent.EnterSection
- Enclosing interface:
- EntityEvent
public static interface EntityEvent.EnterSection
-
Method Summary
Modifier and TypeMethodDescriptionvoidenterSection(net.minecraft.world.entity.Entity entity, int sectionX, int sectionY, int sectionZ, int prevX, int prevY, int prevZ) Invoked whenever an entity enters a chunk.
-
Method Details
-
enterSection
void enterSection(net.minecraft.world.entity.Entity entity, int sectionX, int sectionY, int sectionZ, int prevX, int prevY, int prevZ) Invoked whenever an entity enters a chunk. Equivalent to Forge'sEnteringChunkevent.- Parameters:
entity- The entity moving to a different chunk.sectionX- The chunk x-coordinate.sectionY- The chunk y-coordinate.sectionZ- The chunk z-coordinate.prevX- The previous chunk x-coordinate.prevY- The previous chunk y-coordinate.prevZ- The previous chunk z-coordinate.
-