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 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.
  • Field Details

    • canUpdate

      private boolean canUpdate
  • Constructor Details

    • CanUpdate

      public CanUpdate(Entity entity)
  • Method Details

    • getCanUpdate

      public boolean getCanUpdate()
    • setCanUpdate

      public void setCanUpdate(boolean canUpdate)