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 does not have a result.
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 does not have a result.
invalid reference
HasResult
This event is fired on the
NeoForge.EVENT_BUS.-
Nested Class Summary
Nested classes/interfaces inherited from class net.neoforged.neoforge.event.entity.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 net.neoforged.neoforge.event.entity.EntityEvent
getEntityMethods inherited from class java.lang.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
-