Class CommandRegistrationStrategy<Source>

java.lang.Object
dev.jorel.commandapi.CommandRegistrationStrategy<Source>

public abstract class CommandRegistrationStrategy<Source> extends Object
  • Constructor Details

    • CommandRegistrationStrategy

      public CommandRegistrationStrategy()
  • Method Details

    • removeBrigadierCommands

      protected void removeBrigadierCommands(com.mojang.brigadier.tree.RootCommandNode<Source> root, String commandName, boolean unregisterNamespaces, Predicate<com.mojang.brigadier.tree.CommandNode<Source>> extraCheck)
    • removeCommandNamespace

      protected static <T> void removeCommandNamespace(Map<String,T> map, String commandName, Predicate<T> extraCheck)
    • removeCommandFromMapIfCheckPasses

      protected static <T> void removeCommandFromMapIfCheckPasses(Map<String,T> map, String key, Predicate<T> extraCheck)
    • isThisTheCommandButNamespaced

      protected static boolean isThisTheCommandButNamespaced(String commandName, String key)
    • getBrigadierDispatcher

      public abstract com.mojang.brigadier.CommandDispatcher<Source> getBrigadierDispatcher()
    • runTasksAfterServerStart

      public void runTasksAfterServerStart()
    • postCommandRegistration

      public void postCommandRegistration(RegisteredCommand registeredCommand, com.mojang.brigadier.tree.LiteralCommandNode<Source> resultantNode, List<com.mojang.brigadier.tree.LiteralCommandNode<Source>> aliasNodes)
    • registerCommandNode

      public abstract com.mojang.brigadier.tree.LiteralCommandNode<Source> registerCommandNode(com.mojang.brigadier.builder.LiteralArgumentBuilder<Source> node, String namespace)
    • unregister

      public abstract void unregister(String commandName, boolean unregisterNamespaces, boolean unregisterBukkit)
    • preReloadDataPacks

      public abstract void preReloadDataPacks()
    • canRegister

      public boolean canRegister()