@Immutable public class NukkitItemInstance extends Object implements ItemInstance
| Constructor and Description |
|---|
NukkitItemInstance(ItemType type) |
NukkitItemInstance(ItemType type,
int amount,
Metadata data) |
NukkitItemInstance(ItemType type,
int amount,
Metadata data,
String itemName,
List<String> itemLore,
Collection<EnchantmentInstance> enchantments) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(ItemInstance item) |
boolean |
equals(ItemInstance other,
boolean checkAmount,
boolean checkMeta,
boolean checkUserData) |
boolean |
equals(Object o) |
int |
getAmount() |
Collection<EnchantmentInstance> |
getEnchantments() |
ItemType |
getItemType() |
List<String> |
getLore() |
Optional<Metadata> |
getMetadata() |
Optional<String> |
getName() |
int |
hashCode() |
boolean |
isMergeable(ItemInstance other) |
boolean |
isSimilar(ItemInstance other) |
ItemInstanceBuilder |
toBuilder() |
com.nukkitx.nbt.tag.CompoundTag |
toFullNBT() |
RecipeItemInstanceBuilder |
toRecipeBuilder() |
com.nukkitx.nbt.tag.CompoundTag |
toSpecificNBT() |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitisFull, isNullensureMetadatapublic NukkitItemInstance(ItemType type)
public NukkitItemInstance(ItemType type, int amount, Metadata data, String itemName, List<String> itemLore, Collection<EnchantmentInstance> enchantments)
public ItemType getItemType()
getItemType in interface ItemInstancepublic int getAmount()
getAmount in interface ItemInstancepublic Optional<Metadata> getMetadata()
getMetadata in interface Metadatablepublic Optional<String> getName()
getName in interface ItemInstancepublic List<String> getLore()
getLore in interface ItemInstancepublic Collection<EnchantmentInstance> getEnchantments()
getEnchantments in interface ItemInstancepublic ItemInstanceBuilder toBuilder()
toBuilder in interface ItemInstancepublic RecipeItemInstanceBuilder toRecipeBuilder()
toRecipeBuilder in interface ItemInstancepublic boolean isMergeable(@Nonnull ItemInstance other)
isMergeable in interface ItemInstancepublic boolean equals(@Nullable ItemInstance item)
equals in interface ItemInstancepublic boolean isSimilar(@Nonnull ItemInstance other)
isSimilar in interface ItemInstancepublic boolean equals(@Nullable ItemInstance other, boolean checkAmount, boolean checkMeta, boolean checkUserData)
equals in interface ItemInstancepublic com.nukkitx.nbt.tag.CompoundTag toFullNBT()
public com.nukkitx.nbt.tag.CompoundTag toSpecificNBT()
Copyright © 2017–2018 NukkitX. All rights reserved.