Package dev.latvian.mods.kubejs.command
Class CommandRegistryKubeEvent
java.lang.Object
dev.latvian.mods.kubejs.command.CommandRegistryKubeEvent
- All Implemented Interfaces:
KubeEvent
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal net.minecraft.commands.CommandBuildContextfinal com.mojang.brigadier.CommandDispatcher<net.minecraft.commands.CommandSourceStack> final net.minecraft.commands.Commands.CommandSelection -
Constructor Summary
ConstructorsConstructorDescriptionCommandRegistryKubeEvent(com.mojang.brigadier.CommandDispatcher<net.minecraft.commands.CommandSourceStack> dispatcher, net.minecraft.commands.CommandBuildContext context, net.minecraft.commands.Commands.CommandSelection selection) -
Method Summary
Modifier and TypeMethodDescriptionClassWrapper<net.minecraft.commands.SharedSuggestionProvider> ClassWrapper<net.minecraft.commands.Commands> net.minecraft.commands.CommandBuildContextbooleanbooleancom.mojang.brigadier.tree.LiteralCommandNode<net.minecraft.commands.CommandSourceStack> register(com.mojang.brigadier.builder.LiteralArgumentBuilder<net.minecraft.commands.CommandSourceStack> command) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.latvian.mods.kubejs.event.KubeEvent
afterPosted, cancel, cancel, defaultExitValue, exit, exit, getExitValueType, mapExitValue, success, success
-
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
-
getArguments
-
getBuiltinSuggestions
-