@Immutable public class NukkitItemStack extends Object implements ItemStack
| Constructor and Description |
|---|
NukkitItemStack(ItemType type) |
NukkitItemStack(ItemType type,
int amount,
Metadata data) |
NukkitItemStack(ItemType type,
int amount,
Metadata data,
String itemName,
List<String> itemLore,
Collection<EnchantmentInstance> enchantments) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(ItemStack item) |
boolean |
equals(ItemStack 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(ItemStack other) |
boolean |
isSimilar(ItemStack other) |
ItemStackBuilder |
toBuilder() |
com.nukkitx.nbt.tag.CompoundTag |
toFullNBT() |
RecipeItemStackBuilder |
toRecipeBuilder() |
com.nukkitx.nbt.tag.CompoundTag |
toSpecificNBT() |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitensureMetadatapublic NukkitItemStack(ItemType type)
public NukkitItemStack(ItemType type, int amount, Metadata data, String itemName, List<String> itemLore, Collection<EnchantmentInstance> enchantments)
public ItemType getItemType()
getItemType in interface ItemStackpublic Optional<Metadata> getMetadata()
getMetadata in interface Metadatablepublic Collection<EnchantmentInstance> getEnchantments()
getEnchantments in interface ItemStackpublic ItemStackBuilder toBuilder()
public RecipeItemStackBuilder toRecipeBuilder()
toRecipeBuilder in interface ItemStackpublic boolean isMergeable(@Nonnull ItemStack other)
isMergeable in interface ItemStackpublic boolean equals(@Nullable ItemStack other, boolean checkAmount, boolean checkMeta, boolean checkUserData)
public com.nukkitx.nbt.tag.CompoundTag toFullNBT()
public com.nukkitx.nbt.tag.CompoundTag toSpecificNBT()
Copyright © 2017–2019 NukkitX. All rights reserved.