Modifier and Type | Field and Description |
---|---|
private Item |
item |
private static com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType |
OVERSTACKED_EXCEPTION |
private CompoundTag |
tag |
Constructor and Description |
---|
ItemStackArgument(Item item,
CompoundTag tag) |
Modifier and Type | Method and Description |
---|---|
String |
asString() |
ItemStack |
createStack(int amount,
boolean checkOverstack) |
Item |
getItem() |
boolean |
test(ItemStack itemStack) |
private static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType OVERSTACKED_EXCEPTION
private final Item item
@Nullable private final CompoundTag tag
public ItemStackArgument(Item item, @Nullable CompoundTag tag)