Package net.minecraft.server.commands
Class ClearInventoryCommands
java.lang.Object
net.minecraft.server.commands.ClearInventoryCommands
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static int
clearInventory
(CommandSourceStack p_136706_, Collection<ServerPlayer> p_136707_, Predicate<ItemStack> p_136708_, int p_136709_) private static int
clearUnlimited
(CommandSourceStack p_332708_, Collection<ServerPlayer> p_332807_, Predicate<ItemStack> p_332684_) static void
register
(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> p_214421_, CommandBuildContext p_214422_)
-
Field Details
-
ERROR_SINGLE
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_SINGLE -
ERROR_MULTIPLE
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_MULTIPLE
-
-
Constructor Details
-
ClearInventoryCommands
public ClearInventoryCommands()
-
-
Method Details
-
register
public static void register(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> p_214421_, CommandBuildContext p_214422_) -
clearUnlimited
private static int clearUnlimited(CommandSourceStack p_332708_, Collection<ServerPlayer> p_332807_, Predicate<ItemStack> p_332684_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
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 - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-