Class ServerDefineCommandsEvent

java.lang.Object
org.geysermc.geyser.api.event.connection.ConnectionEvent
org.geysermc.geyser.api.event.downstream.ServerDefineCommandsEvent
All Implemented Interfaces:
org.geysermc.event.Cancellable, org.geysermc.event.Event

@Deprecated(forRemoval=true) public class ServerDefineCommandsEvent extends ConnectionEvent implements org.geysermc.event.Cancellable
Deprecated, for removal: This API element is subject to removal in a future version.
  • Constructor Details

  • Method Details

    • commands

      public @NonNull Set<? extends ServerDefineCommandsEvent.CommandInfo> commands()
      Deprecated, for removal: This API element is subject to removal in a future version.
      A collection of commands sent from the server. Any element in this collection can be removed, but no element can be added.
      Returns:
      a collection of the commands sent over
    • isCancelled

      public boolean isCancelled()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      isCancelled in interface org.geysermc.event.Cancellable
    • setCancelled

      public void setCancelled(boolean cancelled)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      setCancelled in interface org.geysermc.event.Cancellable