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
CanUpdate is fired when an Entity is being created.
This event is fired whenever vanilla Minecraft determines that an entity
cannot update in
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 not
This event is fired on the
This event is fired whenever vanilla Minecraft determines that an entity
cannot update in
World#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 not
Cancelable
.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.EnteringSection, 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
-
Method Summary
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
-
canUpdate
private boolean canUpdate
-
-
Constructor Details
-
CanUpdate
-
-
Method Details
-
getCanUpdate
public boolean getCanUpdate() -
setCanUpdate
public void setCanUpdate(boolean canUpdate)
-