Package net.minecraft.command.impl
Class ReplaceItemCommand
- java.lang.Object
-
- net.minecraft.command.impl.ReplaceItemCommand
-
public class ReplaceItemCommand extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType
ERROR_ENTITY_SLOT
static com.mojang.brigadier.exceptions.DynamicCommandExceptionType
ERROR_INAPPLICABLE_SLOT
static com.mojang.brigadier.exceptions.SimpleCommandExceptionType
ERROR_NOT_A_CONTAINER
-
Constructor Summary
Constructors Constructor Description ReplaceItemCommand()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
register(com.mojang.brigadier.CommandDispatcher<CommandSource> p_198602_0_)
private static int
setBlockItem(CommandSource p_198603_0_, BlockPos p_198603_1_, int p_198603_2_, ItemStack p_198603_3_)
private static int
setEntityItem(CommandSource p_198604_0_, java.util.Collection<? extends Entity> p_198604_1_, int p_198604_2_, ItemStack p_198604_3_)
-
-
-
Field Detail
-
ERROR_NOT_A_CONTAINER
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_NOT_A_CONTAINER
-
ERROR_INAPPLICABLE_SLOT
public static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_INAPPLICABLE_SLOT
-
ERROR_ENTITY_SLOT
public static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType ERROR_ENTITY_SLOT
-
-
Method Detail
-
register
public static void register(com.mojang.brigadier.CommandDispatcher<CommandSource> p_198602_0_)
-
setBlockItem
private static int setBlockItem(CommandSource p_198603_0_, BlockPos p_198603_1_, int p_198603_2_, ItemStack p_198603_3_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
setEntityItem
private static int setEntityItem(CommandSource p_198604_0_, java.util.Collection<? extends Entity> p_198604_1_, int p_198604_2_, ItemStack p_198604_3_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
-