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

    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

    Modifier and Type
    Method
    Description
    Gets the Entity.

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

    isCancelled, setCancelled

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

    cause, context, source
  • Method Details

    • entity

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