Class GiveCommand

java.lang.Object
net.minecraft.server.commands.GiveCommand

public class GiveCommand extends Object
  • Field Details

    • MAX_ALLOWED_ITEMSTACKS

      public static final int MAX_ALLOWED_ITEMSTACKS
      See Also:
      Constant Field Values
  • Constructor Details

    • GiveCommand

      public GiveCommand()
  • Method Details

    • register

      public static void register(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> p_137773_)
    • giveItem

      private static int giveItem(CommandSourceStack p_137779_, ItemInput p_137780_, Collection<ServerPlayer> p_137781_, int p_137782_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException