public class ReplaceItemCommand
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static com.mojang.brigadier.exceptions.SimpleCommandExceptionType |
BLOCK_FAILED_EXCEPTION |
static com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType |
ENTITY_FAILED_EXCEPTION |
static com.mojang.brigadier.exceptions.DynamicCommandExceptionType |
INAPPLICABLE_SLOT_EXCEPTION |
Constructor and Description |
---|
ReplaceItemCommand() |
Modifier and Type | Method and Description |
---|---|
static void |
register(com.mojang.brigadier.CommandDispatcher<CommandSource> dispatcher) |
private static int |
replaceItemBlock(CommandSource source,
BlockPos pos,
int slotIn,
ItemStack newStack) |
private static int |
replaceItemEntities(CommandSource source,
java.util.Collection<? extends Entity> targets,
int slotIn,
ItemStack newStack) |
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType BLOCK_FAILED_EXCEPTION
public static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType INAPPLICABLE_SLOT_EXCEPTION
public static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType ENTITY_FAILED_EXCEPTION
public static void register(com.mojang.brigadier.CommandDispatcher<CommandSource> dispatcher)
private static int replaceItemBlock(CommandSource source, BlockPos pos, int slotIn, ItemStack newStack) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
private static int replaceItemEntities(CommandSource source, java.util.Collection<? extends Entity> targets, int slotIn, ItemStack newStack) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException