Package net.minecraftforge.event.entity
Class EntityEvent.CanUpdate
- java.lang.Object
-
- net.minecraftforge.eventbus.api.Event
-
- net.minecraftforge.event.entity.EntityEvent
-
- net.minecraftforge.event.entity.EntityEvent.CanUpdate
-
- Enclosing class:
- EntityEvent
public static class EntityEvent.CanUpdate extends EntityEvent
CanUpdate is fired when an Entity is being created.
This event is fired whenever vanilla Minecraft determines that an entity
cannot update inWorld#updateEntityWithOptionalForce(net.minecraft.entity.Entity, boolean)
canUpdate
contains the boolean value of whether this entity can update.
If the modder decides that this Entity can be updated, they may change canUpdate to true,
and the entity with then be updated.
This event is notCancelable
.
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
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
canUpdate
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
getCanUpdate()
void
setCanUpdate(boolean canUpdate)
-
Methods inherited from class net.minecraftforge.event.entity.EntityEvent
getEntity
-
-
-
-
Constructor Detail
-
CanUpdate
public CanUpdate(Entity entity)
-
-