Class GiveCommand
java.lang.Object
net.minecraft.server.commands.GiveCommand
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intprivate static final CommandResponseTracker.MessagesWithArgs<ServerPlayer, Integer, ItemStack> private static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static intgiveItem(CommandSourceStack source, ItemInput input, Collection<ServerPlayer> players, int count) static voidregister(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> dispatcher, CommandBuildContext context)
-
Field Details
-
TOO_MANY_ITEMS
private static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType TOO_MANY_ITEMS -
RESPONSE_GIVE
private static final CommandResponseTracker.MessagesWithArgs<ServerPlayer, Integer, ItemStack> RESPONSE_GIVE -
MAX_ALLOWED_ITEMSTACKS
public static final int MAX_ALLOWED_ITEMSTACKS- See Also:
-
-
Constructor Details
-
GiveCommand
public GiveCommand()
-
-
Method Details
-
register
public static void register(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> dispatcher, CommandBuildContext context) -
giveItem
private static int giveItem(CommandSourceStack source, ItemInput input, Collection<ServerPlayer> players, int count) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-