Package net.minecraft.command.impl
Class RecipeCommand
java.lang.Object
net.minecraft.command.impl.RecipeCommand
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static int
giveRecipes
(CommandSource p_198594_0_, Collection<ServerPlayerEntity> p_198594_1_, Collection<IRecipe<?>> p_198594_2_) static void
register
(com.mojang.brigadier.CommandDispatcher<CommandSource> p_198589_0_) private static int
takeRecipes
(CommandSource p_198590_0_, Collection<ServerPlayerEntity> p_198590_1_, Collection<IRecipe<?>> p_198590_2_)
-
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
-
giveRecipes
private static int giveRecipes(CommandSource p_198594_0_, Collection<ServerPlayerEntity> p_198594_1_, Collection<IRecipe<?>> p_198594_2_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
takeRecipes
private static int takeRecipes(CommandSource p_198590_0_, Collection<ServerPlayerEntity> p_198590_1_, Collection<IRecipe<?>> p_198590_2_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-