Class 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 Detail

      • entityMounting

        private final Entity entityMounting
      • entityBeingMounted

        private final Entity entityBeingMounted
      • worldObj

        private final World worldObj
      • isMounting

        private final boolean isMounting
    • Constructor Detail

      • EntityMountEvent

        public EntityMountEvent​(Entity entityMounting,
                                Entity entityBeingMounted,
                                World entityWorld,
                                boolean isMounting)
    • Method Detail

      • isMounting

        public boolean isMounting()
      • isDismounting

        public boolean isDismounting()
      • getEntityMounting

        public Entity getEntityMounting()
      • getEntityBeingMounted

        public Entity getEntityBeingMounted()
      • getWorldObj

        public World getWorldObj()