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 EntityentityBeingMountedprivate EntityentityMountingprivate booleanisMountingprivate WorldworldObj
-
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 EntitygetEntityBeingMounted()EntitygetEntityMounting()WorldgetWorldObj()booleanisDismounting()booleanisMounting()-
Methods inherited from class net.minecraftforge.event.entity.EntityEvent
getEntity
-
-