Modifier and Type | Field and Description |
---|---|
private Item |
item |
private static com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType |
STACK_TOO_LARGE |
private CompoundNBT |
tag |
Constructor and Description |
---|
ItemInput(Item itemIn,
CompoundNBT tagIn) |
Modifier and Type | Method and Description |
---|---|
ItemStack |
createStack(int count,
boolean allowOversizedStacks) |
Item |
getItem() |
java.lang.String |
serialize() |
boolean |
test(ItemStack p_test_1_) |
private static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType STACK_TOO_LARGE
private final Item item
@Nullable private final CompoundNBT tag
public ItemInput(Item itemIn, @Nullable CompoundNBT tagIn)
public Item getItem()
public boolean test(ItemStack p_test_1_)
test
in interface java.util.function.Predicate<ItemStack>
public ItemStack createStack(int count, boolean allowOversizedStacks) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
public java.lang.String serialize()