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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceDeprecated, for removal: This API element is subject to removal in a future version. -
Constructor Summary
ConstructorsConstructorDescriptionServerDefineCommandsEvent(GeyserConnection connection, Set<? extends ServerDefineCommandsEvent.CommandInfo> commands) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionSet<? 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.booleanDeprecated, for removal: This API element is subject to removal in a future version.voidsetCancelled(boolean cancelled) Deprecated, for removal: This API element is subject to removal in a future version.Methods inherited from class org.geysermc.geyser.api.event.connection.ConnectionEvent
connection
-
Constructor Details
-
ServerDefineCommandsEvent
public ServerDefineCommandsEvent(GeyserConnection connection, Set<? extends ServerDefineCommandsEvent.CommandInfo> commands) Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
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:
isCancelledin interfaceorg.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:
setCancelledin interfaceorg.geysermc.event.Cancellable
-
ServerDefineCommandsEvent.