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
This event gets fired whenever a entity mounts/dismounts another entity.
entityBeingMounted can be null, be sure to check for that.
This event is
If this event is canceled, the entity does not mount/dismount the other entity.
This event does not have a result.
This event is fired on the
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
.-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraftforge.event.entity.EntityEvent
EntityEvent.CanUpdate, EntityEvent.EnteringSection, EntityEvent.EntityConstructing, EntityEvent.Size
Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
Field Summary
-
Constructor Summary
ConstructorDescriptionEntityMountEvent
(Entity entityMounting, Entity entityBeingMounted, Level entityWorld, boolean isMounting) -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
Methods inherited from class net.minecraftforge.event.entity.EntityEvent
getEntity
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getParentListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
-
Field Details
-
entityMounting
-
entityBeingMounted
-
worldObj
-
isMounting
private final boolean isMounting
-
-
Constructor Details
-
EntityMountEvent
-
-
Method Details
-
isMounting
public boolean isMounting() -
isDismounting
public boolean isDismounting() -
getEntityMounting
-
getEntityBeingMounted
-
getWorldObj
-