Package net.minecraft.command.arguments
Class ItemInput
- java.lang.Object
-
- net.minecraft.command.arguments.ItemInput
-
-
Field Summary
Fields Modifier and Type Field Description private static com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType
ERROR_STACK_TOO_BIG
private Item
item
private CompoundNBT
tag
-
Constructor Summary
Constructors Constructor Description ItemInput(Item p_i47961_1_, CompoundNBT p_i47961_2_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ItemStack
createItemStack(int p_197320_1_, boolean p_197320_2_)
Item
getItem()
java.lang.String
serialize()
boolean
test(ItemStack p_test_1_)
-
-
-
Field Detail
-
ERROR_STACK_TOO_BIG
private static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType ERROR_STACK_TOO_BIG
-
item
private final Item item
-
tag
@Nullable private final CompoundNBT tag
-
-
Constructor Detail
-
ItemInput
public ItemInput(Item p_i47961_1_, @Nullable CompoundNBT p_i47961_2_)
-
-
Method Detail
-
getItem
public Item getItem()
-
test
public boolean test(ItemStack p_test_1_)
- Specified by:
test
in interfacejava.util.function.Predicate<ItemStack>
-
createItemStack
public ItemStack createItemStack(int p_197320_1_, boolean p_197320_2_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
serialize
public java.lang.String serialize()
-
-