类 ClearInventoryCommands
java.lang.Object
net.minecraft.server.commands.ClearInventoryCommands
-
字段概要
字段修饰符和类型字段说明private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明private static int
clearInventory
(CommandSourceStack p_136706_, Collection<ServerPlayer> p_136707_, Predicate<ItemStack> p_136708_, int p_136709_) private static int
clearUnlimited
(CommandSourceStack p_333436_, Collection<ServerPlayer> p_334305_, Predicate<ItemStack> p_336088_) static void
register
(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> p_214421_, CommandBuildContext p_214422_)
-
字段详细资料
-
ERROR_SINGLE
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_SINGLE -
ERROR_MULTIPLE
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_MULTIPLE
-
-
构造器详细资料
-
ClearInventoryCommands
public ClearInventoryCommands()
-
-
方法详细资料
-
register
public static void register(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> p_214421_, CommandBuildContext p_214422_) -
clearUnlimited
private static int clearUnlimited(CommandSourceStack p_333436_, Collection<ServerPlayer> p_334305_, Predicate<ItemStack> p_336088_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - 抛出:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
clearInventory
private static int clearInventory(CommandSourceStack p_136706_, Collection<ServerPlayer> p_136707_, Predicate<ItemStack> p_136708_, int p_136709_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - 抛出:
com.mojang.brigadier.exceptions.CommandSyntaxException
-