Package net.minecraftforge.event.entity
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 isCancelable
.
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 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 Entity
entityBeingMounted
private Entity
entityMounting
private boolean
isMounting
private World
worldObj
-
Constructor Summary
Constructors Constructor Description EntityMountEvent(Entity entityMounting, Entity entityBeingMounted, World entityWorld, boolean isMounting)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Entity
getEntityBeingMounted()
Entity
getEntityMounting()
World
getWorldObj()
boolean
isDismounting()
boolean
isMounting()
-
Methods inherited from class net.minecraftforge.event.entity.EntityEvent
getEntity
-
-