Package com.stardevllc.starmclib.command
Class StarCommand.Builder<T extends org.bukkit.plugin.java.JavaPlugin>
java.lang.Object
com.stardevllc.starmclib.command.StarCommand.Builder<T>
- All Implemented Interfaces:
com.stardevllc.starlib.objects.builder.IBuilder<StarCommand<T>,,StarCommand.Builder<T>> Cloneable
- Enclosing class:
StarCommand<T extends org.bukkit.plugin.java.JavaPlugin>
public static class StarCommand.Builder<T extends org.bukkit.plugin.java.JavaPlugin>
extends Object
implements com.stardevllc.starlib.objects.builder.IBuilder<StarCommand<T>,StarCommand.Builder<T>>
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.stardevllc.starlib.objects.builder.IBuilder
com.stardevllc.starlib.objects.builder.IBuilder.Container<T> -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected String[]protected StarCommand.Completer<T> protected booleanprotected net.kyori.adventure.text.Componentprotected Stringprotected StarCommand.Executor<T> protected net.kyori.adventure.text.Componentprotected Stringprotected net.kyori.adventure.text.Componentprotected Stringprotected booleanprotected net.kyori.adventure.text.Componentprotected Tprotected final List<SubCommand<T>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddSubCommand(SubCommand.Builder<T> subCommandBuilder) addSubCommand(SubCommand<T> subCommand) build()clone()completer(StarCommand.Completer<T> completer) consoleOnly(net.kyori.adventure.text.Component consoleOnlyMessage) consoleOnlyMessage(net.kyori.adventure.text.Component consoleOnlyMessage) description(String description) executor(StarCommand.Executor<T> executor) invalidSubCommandMessage(net.kyori.adventure.text.Component invalidSubCommandMessage) noPermissionMessage(net.kyori.adventure.text.Component noPermissionMessage) permission(String permission) playerOnly(net.kyori.adventure.text.Component playerOnlyMessage) playerOnlyMessage(net.kyori.adventure.text.Component playerOnlyMessage) subCommand(Consumer<SubCommand.Builder<T>> subCommandBuilderConsumer) Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.stardevllc.starlib.objects.builder.IBuilder
getPostbuildConsumer, getPrebuildConsumer, postBuild, preBuild, self
-
Field Details
-
plugin
-
name
-
aliases
-
description
-
playerOnly
protected boolean playerOnly -
consoleOnly
protected boolean consoleOnly -
permission
-
executor
-
completer
-
subCommands
-
playerOnlyMessage
protected net.kyori.adventure.text.Component playerOnlyMessage -
consoleOnlyMessage
protected net.kyori.adventure.text.Component consoleOnlyMessage -
noPermissionMessage
protected net.kyori.adventure.text.Component noPermissionMessage -
invalidSubCommandMessage
protected net.kyori.adventure.text.Component invalidSubCommandMessage
-
-
Constructor Details
-
Builder
public Builder() -
Builder
-
-
Method Details
-
build
- Specified by:
buildin interfacecom.stardevllc.starlib.objects.builder.IBuilder<StarCommand<T extends org.bukkit.plugin.java.JavaPlugin>,StarCommand.Builder<T extends org.bukkit.plugin.java.JavaPlugin>>
-
completer
-
executor
-
plugin
-
name
-
aliases
-
description
-
playerOnly
-
playerOnly
-
consoleOnly
-
consoleOnly
-
permission
-
subCommand
-
addSubCommand
-
addSubCommand
-
playerOnlyMessage
public StarCommand.Builder<T> playerOnlyMessage(net.kyori.adventure.text.Component playerOnlyMessage) -
consoleOnlyMessage
public StarCommand.Builder<T> consoleOnlyMessage(net.kyori.adventure.text.Component consoleOnlyMessage) -
noPermissionMessage
public StarCommand.Builder<T> noPermissionMessage(net.kyori.adventure.text.Component noPermissionMessage) -
invalidSubCommandMessage
public StarCommand.Builder<T> invalidSubCommandMessage(net.kyori.adventure.text.Component invalidSubCommandMessage) -
clone
- Specified by:
clonein interfacecom.stardevllc.starlib.objects.builder.IBuilder<StarCommand<T extends org.bukkit.plugin.java.JavaPlugin>,StarCommand.Builder<T extends org.bukkit.plugin.java.JavaPlugin>> - Overrides:
clonein classObject
-