Hopperlib
Loading...
Searching...
No Matches
cc.mrcl.hopperlib.Command.DebugCommands.DebugCommand Class Referenceabstract
Inheritance diagram for cc.mrcl.hopperlib.Command.DebugCommands.DebugCommand:
cc.mrcl.hopperlib.Command.HopperCommand< T extends JavaPlugin > cc.mrcl.hopperlib.Command.DebugCommands.DebugBaseCommand cc.mrcl.hopperlib.Command.DebugCommands.StatsCommand cc.mrcl.hopperlib.Command.DebugCommands.LibCommand cc.mrcl.hopperlib.Command.DebugCommands.RenderCommand

Public Member Functions

 DebugCommand (String name)
Public Member Functions inherited from cc.mrcl.hopperlib.Command.HopperCommand< T extends JavaPlugin >
 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 ()
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

String getGlobalRootPermission ()
String getNamespace ()
Protected Member Functions inherited from cc.mrcl.hopperlib.Command.HopperCommand< T extends JavaPlugin >
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)
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)

Additional Inherited Members

Protected Attributes inherited from cc.mrcl.hopperlib.Command.HopperCommand< T extends JavaPlugin >
plugin

Detailed Description

This is the main abstract class for all commands of the plugin

Member Function Documentation

◆ getGlobalRootPermission()

String cc.mrcl.hopperlib.Command.DebugCommands.DebugCommand.getGlobalRootPermission ( )
protected
Returns
The global root permission for this plugin as a pure string (eg "ProjectCarthage")

Reimplemented from cc.mrcl.hopperlib.Command.HopperCommand< T extends JavaPlugin >.

◆ getNamespace()

String cc.mrcl.hopperlib.Command.DebugCommands.DebugCommand.getNamespace ( )
protected
Returns
The namespace of the command, usually the plugin name

Reimplemented from cc.mrcl.hopperlib.Command.HopperCommand< T extends JavaPlugin >.


The documentation for this class was generated from the following file:
  • src/main/java/cc/mrcl/hopperlib/Command/DebugCommands/DebugCommand.java