public static class HoverEvent.ItemStackContent extends Object
Modifier and Type | Field and Description |
---|---|
private int |
count |
private Item |
item |
private ItemStack |
stack |
private CompoundTag |
tag |
Constructor and Description |
---|
ItemStackContent(Item item,
int count,
CompoundTag tag) |
ItemStackContent(ItemStack stack) |
Modifier and Type | Method and Description |
---|---|
ItemStack |
asStack() |
boolean |
equals(Object object) |
int |
hashCode() |
private static HoverEvent.ItemStackContent |
parse(JsonElement json) |
private static HoverEvent.ItemStackContent |
parse(Text text) |
private JsonElement |
toJson() |
private final Item item
private final int count
@Nullable private final CompoundTag tag
ItemStackContent(Item item, int count, @Nullable CompoundTag tag)
public ItemStackContent(ItemStack stack)
@Environment(value=CLIENT) public ItemStack asStack()
private static HoverEvent.ItemStackContent parse(JsonElement json)
@Nullable private static HoverEvent.ItemStackContent parse(Text text)
private JsonElement toJson()