Contents
Class UseEntityEvent
java.lang.Object
com.hypixel.hytale.component.system.EcsEvent
com.hypixel.hytale.server.core.event.events.ecs.UseEntityEvent
- Direct Known Subclasses:
UseEntityEvent.Post, UseEntityEvent.Pre
An event that is called when an entity is used (interacted with) by another entity, mirroring
UseBlockEvent for the entity-interaction path.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classAn event that is called after an entity is used.static final classAn event that is called before an entity is used. -
Constructor Summary
ConstructorsConstructorDescriptionUseEntityEvent(InteractionType interactionType, InteractionContext context, Ref<EntityStore> targetEntity) -
Method Summary
Modifier and TypeMethodDescription
-
Constructor Details
-
UseEntityEvent
public UseEntityEvent(@Nonnull InteractionType interactionType, @Nonnull InteractionContext context, @Nonnull Ref<EntityStore> targetEntity)
-
-
Method Details
-
getInteractionType
- Returns:
- the type of interaction being performed.
-
getContext
- Returns:
- the context of the interaction.
-
getTargetEntity
- Returns:
- the entity being used.
-