Class RecipeCommand
java.lang.Object
net.minecraft.server.commands.RecipeCommand
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final SimpleCommandExceptionTypeprivate static final SimpleCommandExceptionType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static intgiveRecipes(CommandSourceStack source, Collection<ServerPlayer> players, Collection<RecipeHolder<?>> recipes) static voidregister(CommandDispatcher<CommandSourceStack> dispatcher) private static inttakeRecipes(CommandSourceStack source, Collection<ServerPlayer> players, Collection<RecipeHolder<?>> recipes)
-
Field Details
-
ERROR_GIVE_FAILED
-
ERROR_TAKE_FAILED
-
-
Constructor Details
-
RecipeCommand
public RecipeCommand()
-
-
Method Details
-
register
-
giveRecipes
private static int giveRecipes(CommandSourceStack source, Collection<ServerPlayer> players, Collection<RecipeHolder<?>> recipes) throws CommandSyntaxException - Throws:
CommandSyntaxException
-
takeRecipes
private static int takeRecipes(CommandSourceStack source, Collection<ServerPlayer> players, Collection<RecipeHolder<?>> recipes) throws CommandSyntaxException - Throws:
CommandSyntaxException
-