public class CommandObject<T>
extends java.lang.Object
| Constructor and Description |
|---|
CommandObject(CommandArguments args,
Builder<T> builder) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
CommandArguments |
getArguments() |
Builder<T> |
getBuilder() |
int |
hashCode() |
CommandObject<T> |
withPreProcessHook(java.util.function.Consumer<Connection> hook)
Returns a new command identical to this one with
hook appended to its pre-process
hooks; this instance is immutable and unaffected. |
public CommandObject(CommandArguments args, Builder<T> builder)
public CommandArguments getArguments()
@Experimental public CommandObject<T> withPreProcessHook(java.util.function.Consumer<Connection> hook)
hook appended to its pre-process
hooks; this instance is immutable and unaffected. Hooks run in append order on the connection
right before the command is sent.hook - per-connection setup to run just before this commandCommandObject carrying the appended hookpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.ObjectCopyright © 2026. All rights reserved.