Interface InteractEntityEvent

All Superinterfaces:
Cancellable, Event, InteractEvent
All Known Subinterfaces:
InteractEntityEvent.Primary, InteractEntityEvent.Secondary, InteractEntityEvent.Secondary.At, InteractEntityEvent.Secondary.On

public interface InteractEntityEvent extends InteractEvent, Cancellable
Base event for all interactions targeting an Entity.
  • Nested Class Summary Link icon

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    An event where the targeted entity is being interacted with the client's "primary" button.
    static interface 
    An event where the targeted entity is being interacted with the client's "secondary" button.
  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    Gets the Entity.

    Methods inherited from interface org.spongepowered.api.event.Cancellable Link icon

    isCancelled, setCancelled

    Methods inherited from interface org.spongepowered.api.event.Event Link icon

    cause, context, source
  • Method Details Link icon

    • entity Link icon

      Entity entity()
      Gets the Entity.
      Returns:
      The entity