Class EntityMountEvent
java.lang.Object
net.neoforged.bus.api.Event
net.neoforged.neoforge.event.entity.EntityEvent
net.neoforged.neoforge.event.entity.EntityMountEvent
- All Implemented Interfaces:
net.neoforged.bus.api.ICancellableEvent
public class EntityMountEvent
extends EntityEvent
implements net.neoforged.bus.api.ICancellableEvent
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 is fired on the
entityBeingMounted can be null, be sure to check for that.
This event is
ICancellableEvent.If this event is canceled, the entity does not mount/dismount the other entity.
This event is fired on the
NeoForge.EVENT_BUS.-
Nested Class Summary
Nested classes/interfaces inherited from class EntityEvent
EntityEvent.EnteringSection, EntityEvent.EntityConstructing, EntityEvent.Size -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionEntityMountEvent(Entity entityMounting, Entity entityBeingMounted, Level level, boolean isMounting) -
Method Summary
Methods inherited from class EntityEvent
getEntityMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.neoforged.bus.api.ICancellableEvent
isCanceled, setCanceled
-
Field Details
-
entityMounting
-
entityBeingMounted
-
level
-
isMounting
private final boolean isMounting
-
-
Constructor Details
-
EntityMountEvent
-
-
Method Details
-
isMounting
public boolean isMounting() -
isDismounting
public boolean isDismounting() -
getEntityMounting
-
getEntityBeingMounted
-
getLevel
-