类 RecipeCommand
java.lang.Object
net.minecraft.server.commands.RecipeCommand
-
字段概要
字段修饰符和类型字段说明private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明private static int
giveRecipes
(CommandSourceStack pSource, Collection<ServerPlayer> pTargets, Collection<Recipe<?>> pRecipes) static void
register
(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> pDispatcher) private static int
takeRecipes
(CommandSourceStack pSource, Collection<ServerPlayer> pTargets, Collection<Recipe<?>> pRecipes)
-
字段详细资料
-
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
-
-
构造器详细资料
-
RecipeCommand
public RecipeCommand()
-
-
方法详细资料
-
register
-
giveRecipes
private static int giveRecipes(CommandSourceStack pSource, Collection<ServerPlayer> pTargets, Collection<Recipe<?>> pRecipes) throws com.mojang.brigadier.exceptions.CommandSyntaxException - 抛出:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
takeRecipes
private static int takeRecipes(CommandSourceStack pSource, Collection<ServerPlayer> pTargets, Collection<Recipe<?>> pRecipes) throws com.mojang.brigadier.exceptions.CommandSyntaxException - 抛出:
com.mojang.brigadier.exceptions.CommandSyntaxException
-