类 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 pSource, Collection<ServerPlayer> pTargetPlayers, Predicate<ItemStack> pItemPredicate, int pMaxCount) static void
register
(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> pDispatcher, CommandBuildContext pContext)
-
字段详细资料
-
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> pDispatcher, CommandBuildContext pContext) -
clearInventory
private static int clearInventory(CommandSourceStack pSource, Collection<ServerPlayer> pTargetPlayers, Predicate<ItemStack> pItemPredicate, int pMaxCount) throws com.mojang.brigadier.exceptions.CommandSyntaxException - 抛出:
com.mojang.brigadier.exceptions.CommandSyntaxException
-