public final class Blade
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Blade.Builder<Text,Plugin,Server> |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<BladeCommand> |
commands() |
CommandTree |
commandTree() |
<T> @NotNull BladeConfiguration<T> |
configuration() |
CommandExecutor |
executor() |
static <Text,Plugin,Server> |
forPlatform(@NotNull BladePlatform<Text,Plugin,Server> platform)
Create a new Blade builder for the specified platform.
|
@NotNull BladeLogger |
logger() |
CommandResolver |
nodeResolver() |
java.util.Map<java.lang.String,PermissionPredicate> |
permissionPredicates() |
PermissionTester |
permissionTester() |
BladePlatform<?,?,?> |
platform() |
<T extends BladePlatform<?,?,?>> |
platformAs(@NotNull java.lang.Class<T> platformClass) |
ArgumentProviderResolver |
providerResolver() |
java.util.List<ArgProvider<?>> |
providers() |
@NotNull Blade |
register(@NotNull java.lang.Class<?> clazz) |
@NotNull Blade |
register(@NotNull java.lang.Object instance) |
@NotNull Blade |
register(@Nullable java.lang.Object instance,
@NotNull java.lang.Class<?> clazz) |
@NotNull Blade |
registerPackage(@NotNull java.lang.Class<?> clazz,
@NotNull java.lang.String packageName) |
CommandRegistrar |
registrar() |
java.util.List<SndProvider<?>> |
senderProviders() |
CommandSuggestionProvider |
suggestionProvider() |
@NotNull @Contract(value="_ -> new") public static <Text,Plugin,Server> @NotNull Blade.Builder<Text,Plugin,Server> forPlatform(@NotNull @NotNull BladePlatform<Text,Plugin,Server> platform)
Text - the text type used by the platformPlugin - the plugin type used by the platformServer - the server type used by the platformplatform - the platform@NotNull public @NotNull BladeLogger logger()
@NotNull @Contract(value="_, _ -> this") public @NotNull Blade register(@Nullable @Nullable java.lang.Object instance, @NotNull @NotNull java.lang.Class<?> clazz)
@NotNull @Contract(value="_ -> this") public @NotNull Blade register(@NotNull @NotNull java.lang.Class<?> clazz)
@NotNull @Contract(value="_ -> this") public @NotNull Blade register(@NotNull @NotNull java.lang.Object instance)
@NotNull @Contract(value="_, _ -> this") public @NotNull Blade registerPackage(@NotNull @NotNull java.lang.Class<?> clazz, @NotNull @NotNull java.lang.String packageName)
@ApiStatus.Internal @NotNull public <T extends BladePlatform<?,?,?>> T platformAs(@NotNull @NotNull java.lang.Class<T> platformClass)
@ApiStatus.Internal @NotNull public <T> @NotNull BladeConfiguration<T> configuration()
public BladePlatform<?,?,?> platform()
public java.util.Map<java.lang.String,PermissionPredicate> permissionPredicates()
public java.util.List<ArgProvider<?>> providers()
public java.util.List<SndProvider<?>> senderProviders()
public java.util.List<BladeCommand> commands()
public CommandTree commandTree()
public CommandRegistrar registrar()
public PermissionTester permissionTester()
public ArgumentProviderResolver providerResolver()
public CommandResolver nodeResolver()
public CommandSuggestionProvider suggestionProvider()
public CommandExecutor executor()