public class ReplaceItemCommand extends 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 |
SLOT_INAPPLICABLE_EXCEPTION |
Constructor and Description |
---|
ReplaceItemCommand() |
Modifier and Type | Method and Description |
---|---|
private static int |
executeBlock(ServerCommandSource source,
BlockPos pos,
int slot,
ItemStack item) |
private static int |
executeEntity(ServerCommandSource source,
Collection<? extends Entity> targets,
int slot,
ItemStack item) |
static void |
register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher) |
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType BLOCK_FAILED_EXCEPTION
public static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType SLOT_INAPPLICABLE_EXCEPTION
public static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType ENTITY_FAILED_EXCEPTION
public static void register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)
private static int executeBlock(ServerCommandSource source, BlockPos pos, int slot, ItemStack item) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
private static int executeEntity(ServerCommandSource source, Collection<? extends Entity> targets, int slot, ItemStack item)