Class TabCompleteEvent

All Implemented Interfaces:
Cancellable

public class TabCompleteEvent extends TargetedEvent implements Cancellable
Event called when a player uses tab completion.
  • Constructor Details

  • Method Details

    • isCancelled

      public boolean isCancelled()
      Cancelled state.
      Specified by:
      isCancelled in interface Cancellable
      Returns:
      the cancelled state of this event
    • getCursor

      public String getCursor()
      The message the player has already entered.
    • getSuggestions

      public List<String> getSuggestions()
      The suggestions that will be sent to the client. This list is mutable. If this list is empty, the request will be forwarded to the server.
    • setCancelled

      public void setCancelled(boolean cancelled)
      Cancelled state.
      Specified by:
      setCancelled in interface Cancellable
      Parameters:
      cancelled - the state to set
    • toString

      public String toString()
      Overrides:
      toString in class TargetedEvent
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class TargetedEvent
    • canEqual

      protected boolean canEqual(Object other)
      Overrides:
      canEqual in class TargetedEvent
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class TargetedEvent