|
Hopperlib
|
Public Member Functions | |
| HopperCommand (String name) | |
| boolean | onCommand (@NotNull CommandSender commandSender, @NotNull Command command, @NotNull String s, String[] strings) |
| HopperCommand< T > | register () |
| HopperCommand< T > | register (T plugin) |
| void | unregister () |
| void | setReflectCommand (ReflectCommand reflectCommand) |
| ReflectCommand | getReflectCommand () |
| void | addSubcommand (HopperCommand< T > carthageCommand) |
| void | findSubcommand (int index) |
| List< String > | getPermissions () |
| String | getRootPermission () |
| String | getFullRootPermission () |
| String[] | getArgs () |
| CommandSender | getCommandSender () |
| String | getName () |
| List< String > | getAliases () |
| String | getDescription () |
| List< HopperCommand< T > > | getSubcommands () |
| HopperCommand< T > | getSuperCommand () |
| Command | getBukkitCommand () |
| T | getPlugin () |
| void | checkPermission (CommandSender sender, boolean strict) |
| void | checkPermission (boolean strict) |
| void | checkPermission () |
| String | getArgumentDescription () |
| String | getUsage () |
| List< String > | onTabComplete (@NotNull CommandSender sender, @NotNull Command command, @NotNull String alias, String[] args) |
Protected Member Functions | |
| abstract void | doCommand () |
| void | addAlias (String s) |
| void | error (String message, String debugMessage) throws CommandException |
| void | error (String message) |
| void | permissionError (List< String > permissions) |
| void | argumentError (String message) |
| void | sendSuccess (String message) |
| void | sendSuccess (CommandSender sender, String message) |
| void | sendFailure (String message) |
| void | sendFailure (CommandSender sender, String message) |
| void | sendInfo (String message) |
| void | sendInfo (CommandSender sender, String message) |
| void | sendMessage (String message) |
| void | sendMessage (CommandSender sender, String message) |
| void | sendColoredComponent (String message, TextColor color) |
| void | sendColoredComponent (CommandSender sender, String message, TextColor color) |
| void | sendComponent (Component component) |
| void | sendComponent (CommandSender sender, Component component) |
| abstract String | getGlobalRootPermission () |
| String | getNamespace () |
| void | setDescription (String description) |
| void | setArgumentDescription (String argumentDescription) |
| void | setSuperCommand (HopperCommand< T > superCommand) |
| void | checkPermission (CommandSender sender, String permission) |
| void | checkPermission (String permission) |
| int | checkArgLength (int min, int max) |
| int | checkArgLength (int min) |
| int | getArgsLength () |
| Player | tryGetPlayerOrSelf (int index) |
| Player | tryGetPlayer () |
| Player | tryGetPlayer (int index) |
| Player | tryGetPlayer (String str) |
| int | tryGetInt (int index) |
| int | tryGetInt (String str) |
| int | tryGetInt (int index, int base) |
| int | tryGetInt (String str, int base) |
| boolean | tryGetBoolean (int index) |
| boolean | tryGetBoolean (String str) |
| Material | tryGetMaterial (int index) |
| String | tryGetString (int index) |
| double | tryGetDouble (int index) |
| double | tryGetDouble (String str) |
| float | tryGetFloat (int index) |
| float | tryGetFloat (String str) |
| BlockFace | tryGetOrientation (int index) |
| BlockFace | tryGetOrientation (String str) |
| Location | tryGetSenderLocation () |
| Location | tryGetLocation (int indexX, int indexY, int indexZ) |
| Location | tryGetLocation (int indexWorld, int indexX, int indexY, int indexZ) |
| Location | tryGetLocation (double x, double y, double z) |
| World | tryGetSenderWorld () |
| World | tryGetWorld (int index) |
| World | tryGetWorld (String string) |
| GameParameter<?> | tryGetGameParameter (HopperConfigFile configManager, int index) |
| GameParameter<?> | tryGetGameParameter (HopperConfigFile configManager, String string) |
| FeatureFlag | tryGetFeatureFlag (HopperConfigFile configManager, int index) |
| FeatureFlag | tryGetFeatureFlag (HopperConfigFile configManager, String string) |
| void | setRootPermission (String rootPermission) |
| void | setSkipPermissionCheck (boolean skipPermissionCheck) |
| void | skipPermissionCheck () |
| void | setCompleterSubargumentIndex (int completerSubargumentIndex) |
| void | addTabCompleterArguments (int index, String... arguments) |
| void | addTabCompleterArguments (int index, @NotNull Supplier< List< String > > supplier) |
| void | addTabCompleterArguments (int index, @NotNull Function< TabCompleterContext, List< String > > function) |
| List< String > | autoCompletePlayerNames () |
| List< String > | autoCompleteWorlds () |
| List< String > | autoCompleteBoolean () |
| List< String > | autoCompleteYawOrientations () |
| List< String > | autoCompletePages (List<?> list) |
| List< String > | autoCompleteRange (int initial, int bound) |
| Block | getTabCompletedBlock (TabCompleterContext context) |
| List< String > | autoCompleteLookX (TabCompleterContext context) |
| List< String > | autoCompleteLookY (TabCompleterContext context) |
| List< String > | autoCompleteLookZ (TabCompleterContext context) |
| List< String > | autoCompleteGameParameters (HopperConfigFile configManager) |
| List< String > | autoCompleteFeatureFlags (HopperConfigFile configManager) |
| SelectionListener | tryRegisterSelectionListener (SelectionListener listener) |
| SelectionListener | tryRegisterBlockSelectionListener (Consumer< Block > operation) |
| SelectionListener | tryRegisterBlockSelectionListener (Player player, Consumer< Block > operation) |
| SelectionListener | tryRegisterBlockSelectionListener (BiConsumer< Block, BlockFace > operation) |
| SelectionListener | tryRegisterBlockSelectionListener (Player player, BiConsumer< Block, BlockFace > operation) |
| SelectionListener | tryRegisterEntitySelectionListener (Consumer< Entity > operation) |
| SelectionListener | tryRegisterEntitySelectionListener (Player player, Consumer< Entity > operation) |
Protected Attributes | |
| T | plugin |
|
protected |
| void cc.mrcl.hopperlib.Command.HopperCommand< T extends JavaPlugin >.checkPermission | ( | ) |
Checks if the current commandsender has the permission from this command, ignoring subcommand permissions.
| void cc.mrcl.hopperlib.Command.HopperCommand< T extends JavaPlugin >.checkPermission | ( | boolean | strict | ) |
Checks if the current commandsender has permission to run this command.
| strict | When strict, don't consider subcommand permissions. |
| void cc.mrcl.hopperlib.Command.HopperCommand< T extends JavaPlugin >.checkPermission | ( | CommandSender | sender, |
| boolean | strict ) |
Checks if a given CommandSender has permission to run this command.
| sender | |
| strict | When strict, don't consider subcommand permissions. |
| void cc.mrcl.hopperlib.Command.HopperCommand< T extends JavaPlugin >.findSubcommand | ( | int | index | ) |
| index | 0-based index to find the subcommand at |
|
abstractprotected |
Reimplemented in cc.mrcl.hopperlib.Command.DebugCommands.DebugCommand.
|
protected |
Reimplemented in cc.mrcl.hopperlib.Command.DebugCommands.DebugCommand.
| List< String > cc.mrcl.hopperlib.Command.HopperCommand< T extends JavaPlugin >.getPermissions | ( | ) |
|
protected |
| rootPermission | the pure name of the permission node, without '.' character. |
|
protected |
| index | the 0-based index of the argument you want to parse |
|
protected |
| str | the string you want to parse |
|
protected |
| index | the 0-based index of the argument you want to parse |
|
protected |
| str | the string you want to parse |
|
protected |
| index | the 0-based index of the argument you want to parse |
|
protected |
| str | the string you want to parse |
|
protected |
| index | the 0-based index of the argument you want to parse |
|
protected |
| index | the 0-based index of the argument you want to parse |
| base | the number base to parse the string in |
|
protected |
| str | the string you want to parse |
|
protected |
| str | the string you want to parse |
| base | the number base to parse the string in |
|
protected |
| index | the 0-based index of the argument you want to parse |
|
protected |
| index | the 0-based index of the argument you want to parse |
|
protected |
| str | the string you want to parse |
|
protected |
|
protected |
| index | the 0-based index of the argument you want to parse |
|
protected |
| str | the name of the Player you want to parse |
|
protected |
|
protected |
|
protected |
| index | the 0-based index of the argument you want to parse |
|
protected |
It registers a SelectionListener that targets right-clicking a block, along with a clicked face
| operation | the operation to perform once a block is right-clicked |
|
protected |
It registers a SelectionListener that targets right-clicking a block
| operation | the operation to perform once a block is right-clicked |
|
protected |
It registers a SelectionListener that targets right-clicking a block, along with a clicked face
| operation | the operation to perform once a block is right-clicked |
| player | the player who should be targeted in this SelectionListener |
|
protected |
It registers a SelectionListener that targets right-clicking a block
| operation | the operation to perform once a block is right-clicked |
| player | the player who should be targeted in this SelectionListener |
|
protected |
It registers a SelectionListener that targets right-clicking an entity
| operation | the operation to perform once an entity is right-clicked |
|
protected |
It registers a SelectionListener that targets right-clicking an entity
| player | the player who should be targeted in this SelectionListener |
| operation | the operation to perform once an entity is right-clicked |
|
protected |
It registers a new SelectionListener for this command
| listener | an already-created SelectionListener |