Class EntityMountEvent

java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.event.entity.EntityEvent
net.minecraftforge.event.entity.EntityMountEvent

public class EntityMountEvent extends EntityEvent
This event gets fired whenever a entity mounts/dismounts another entity.
entityBeingMounted can be null, be sure to check for that.

This event is Cancelable.
If this event is canceled, the entity does not mount/dismount the other entity.

This event does not have a result. Event.HasResult

This event is fired on the MinecraftForge.EVENT_BUS.
  • Field Details

    • entityMounting

      private final Entity entityMounting
    • entityBeingMounted

      private final Entity entityBeingMounted
    • worldObj

      private final Level worldObj
    • isMounting

      private final boolean isMounting
  • Constructor Details

    • EntityMountEvent

      public EntityMountEvent(Entity entityMounting, Entity entityBeingMounted, Level entityWorld, boolean isMounting)
  • Method Details

    • isMounting

      public boolean isMounting()
    • isDismounting

      public boolean isDismounting()
    • getEntityMounting

      public Entity getEntityMounting()
    • getEntityBeingMounted

      public Entity getEntityBeingMounted()
    • getWorldObj

      public Level getWorldObj()