@Immutable public final class ItemData extends Object
| Constructor and Description |
|---|
ItemData() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(ItemData other,
boolean checkAmount,
boolean checkMetadata,
boolean checkUserdata) |
boolean |
equals(Object obj) |
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) |
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)
Copyright © 2018–2019 NukkitX. All rights reserved.