@Immutable public final class ItemData extends Object
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(ItemData other,
boolean checkAmount,
boolean checkMetadata,
boolean checkUserdata) |
boolean |
equals(Object obj) |
long |
getBlockingTicks() |
String[] |
getCanBreak() |
String[] |
getCanPlace() |
int |
getCount() |
short |
getDamage() |
int |
getId() |
com.nukkitx.nbt.tag.CompoundTag |
getTag() |
int |
hashCode() |
boolean |
isNull() |
boolean |
isValid() |
static ItemData |
of(int id,
short damage,
int count) |
static ItemData |
of(int id,
short damage,
int count,
com.nukkitx.nbt.tag.CompoundTag tag) |
static ItemData |
of(int id,
short damage,
int count,
com.nukkitx.nbt.tag.CompoundTag tag,
String[] canPlace,
String[] canBreak) |
static ItemData |
of(int id,
short damage,
int count,
com.nukkitx.nbt.tag.CompoundTag tag,
String[] canPlace,
String[] canBreak,
long blockingTicks) |
String |
toString() |
public static final ItemData AIR
public static ItemData of(int id, short damage, int count)
public static ItemData of(int id, short damage, int count, com.nukkitx.nbt.tag.CompoundTag tag)
public static ItemData of(int id, short damage, int count, com.nukkitx.nbt.tag.CompoundTag tag, String[] canPlace, String[] canBreak)
public static ItemData of(int id, short damage, int count, com.nukkitx.nbt.tag.CompoundTag tag, String[] canPlace, String[] canBreak, long blockingTicks)
public boolean isValid()
public boolean isNull()
public boolean equals(ItemData other, boolean checkAmount, boolean checkMetadata, boolean checkUserdata)
public int getId()
public short getDamage()
public int getCount()
public com.nukkitx.nbt.tag.CompoundTag getTag()
public String[] getCanPlace()
public String[] getCanBreak()
public long getBlockingTicks()
Copyright © 2018–2019 NukkitX. All rights reserved.