Class CommandRegistryKubeEvent

java.lang.Object
dev.latvian.mods.kubejs.command.CommandRegistryKubeEvent
All Implemented Interfaces:
KubeEvent

public class CommandRegistryKubeEvent extends Object implements KubeEvent
  • Field Details

    • dispatcher

      public final com.mojang.brigadier.CommandDispatcher<net.minecraft.commands.CommandSourceStack> dispatcher
    • context

      public final net.minecraft.commands.CommandBuildContext context
    • selection

      public final net.minecraft.commands.Commands.CommandSelection selection
  • Constructor Details

    • CommandRegistryKubeEvent

      public CommandRegistryKubeEvent(com.mojang.brigadier.CommandDispatcher<net.minecraft.commands.CommandSourceStack> dispatcher, net.minecraft.commands.CommandBuildContext context, net.minecraft.commands.Commands.CommandSelection selection)
  • Method Details

    • isForSinglePlayer

      public boolean isForSinglePlayer()
    • isForMultiPlayer

      public boolean isForMultiPlayer()
    • getRegistry

      public net.minecraft.commands.CommandBuildContext getRegistry()
    • register

      public com.mojang.brigadier.tree.LiteralCommandNode<net.minecraft.commands.CommandSourceStack> register(com.mojang.brigadier.builder.LiteralArgumentBuilder<net.minecraft.commands.CommandSourceStack> command)
    • getCommands

      public ClassWrapper<net.minecraft.commands.Commands> getCommands()
    • getArguments

      public ClassWrapper<ArgumentTypeWrappers> getArguments()
    • getBuiltinSuggestions

      public ClassWrapper<net.minecraft.commands.SharedSuggestionProvider> getBuiltinSuggestions()