public class SpongeCallbackHolder extends Object
Modifier and Type | Field and Description |
---|---|
static String |
CALLBACK_COMMAND |
static String |
CALLBACK_COMMAND_QUALIFIED |
Constructor and Description |
---|
SpongeCallbackHolder() |
Modifier and Type | Method and Description |
---|---|
org.spongepowered.api.util.command.spec.CommandSpec |
createCommand() |
Optional<org.spongepowered.api.util.Consumer<org.spongepowered.api.util.command.CommandSource>> |
getCallbackForUUID(UUID id) |
static SpongeCallbackHolder |
getInstance() |
UUID |
getOrCreateIdForCallback(org.spongepowered.api.util.Consumer<org.spongepowered.api.util.command.CommandSource> callback) |
public static final String CALLBACK_COMMAND
public static final String CALLBACK_COMMAND_QUALIFIED
public static SpongeCallbackHolder getInstance()
public UUID getOrCreateIdForCallback(org.spongepowered.api.util.Consumer<org.spongepowered.api.util.command.CommandSource> callback)
public Optional<org.spongepowered.api.util.Consumer<org.spongepowered.api.util.command.CommandSource>> getCallbackForUUID(UUID id)
public org.spongepowered.api.util.command.spec.CommandSpec createCommand()