public interface BladePlatform<Text,Plugin,Server>
| Modifier and Type | Method and Description |
|---|---|
void |
configure(@NotNull Blade.Builder<Text,Plugin,Server> builder,
@NotNull BladeConfiguration<Text> configuration)
Configures the platform with the given Blade builder and configuration.
|
@NotNull ContainerCreator<?> |
containerCreator(@NotNull BladeCommand command)
Gets the container creator.
|
@NotNull java.lang.String |
convertSenderTypeToName(@NotNull java.lang.Class<?> type,
boolean plural)
Converts the given type to a fancy, human-readable name for sender types.
|
default void |
ingestBlade(@NotNull Blade blade)
Ingests the Blade instance after it has been built.
|
Plugin |
plugin()
Gets the plugin instance.
|
Server |
server()
Gets the server instance.
|
default void |
triggerBrigadierSync()
Triggers a Brigadier sync for the platform, if applicable.
|
@NotNull Plugin plugin()
@NotNull Server server()
@NotNull @NotNull ContainerCreator<?> containerCreator(@NotNull @NotNull BladeCommand command)
command - the Blade commandvoid configure(@NotNull
@NotNull Blade.Builder<Text,Plugin,Server> builder,
@NotNull
@NotNull BladeConfiguration<Text> configuration)
builder - the Blade builderconfiguration - the Blade configurationdefault void ingestBlade(@NotNull
@NotNull Blade blade)
blade - the Blade instancedefault void triggerBrigadierSync()
@NotNull
@NotNull java.lang.String convertSenderTypeToName(@NotNull
@NotNull java.lang.Class<?> type,
boolean plural)
type - the type to convertplural - whether to return the plural form