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

public abstract class UseEntityEvent extends EcsEvent
An event that is called when an entity is used (interacted with) by another entity, mirroring UseBlockEvent for the entity-interaction path.
  • Constructor Details

  • Method Details

    • getInteractionType

      @Nonnull public InteractionType getInteractionType()
      Returns:
      the type of interaction being performed.
    • getContext

      @Nonnull public InteractionContext getContext()
      Returns:
      the context of the interaction.
    • getTargetEntity

      @Nonnull public Ref<EntityStore> getTargetEntity()
      Returns:
      the entity being used.