public class Item extends Object
Constructor and Description |
---|
Item() |
Item(int identifier,
byte amount,
short data,
@Nullable com.github.steveice10.opennbt.tag.builtin.CompoundTag tag) |
Item(Item toCopy) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
byte |
getAmount() |
short |
getData() |
int |
getIdentifier() |
@Nullable com.github.steveice10.opennbt.tag.builtin.CompoundTag |
getTag() |
int |
hashCode() |
void |
setAmount(byte amount) |
void |
setData(short data) |
void |
setIdentifier(int identifier) |
void |
setTag(@Nullable com.github.steveice10.opennbt.tag.builtin.CompoundTag tag) |
String |
toString() |
public Item()
public Item(int identifier, byte amount, short data, @Nullable @Nullable com.github.steveice10.opennbt.tag.builtin.CompoundTag tag)
public Item(Item toCopy)
public int getIdentifier()
public void setIdentifier(int identifier)
public byte getAmount()
public void setAmount(byte amount)
public short getData()
public void setData(short data)
@Nullable public @Nullable com.github.steveice10.opennbt.tag.builtin.CompoundTag getTag()
public void setTag(@Nullable @Nullable com.github.steveice10.opennbt.tag.builtin.CompoundTag tag)
Copyright © 2016–2021. All rights reserved.