Class RecipeCommand

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

public class RecipeCommand extends Object
  • Field Details

    • ERROR_GIVE_FAILED

      private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_GIVE_FAILED
    • ERROR_TAKE_FAILED

      private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_TAKE_FAILED
  • Constructor Details

    • RecipeCommand

      public RecipeCommand()
  • Method Details

    • register

      public static void register(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> p_138201_)
    • giveRecipes

      private static int giveRecipes(CommandSourceStack p_138207_, Collection<ServerPlayer> p_138208_, Collection<Recipe<?>> p_138209_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • takeRecipes

      private static int takeRecipes(CommandSourceStack p_138213_, Collection<ServerPlayer> p_138214_, Collection<Recipe<?>> p_138215_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException