@Nonnull @Immutable public interface ItemStack extends Metadatable
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(ItemStack item) |
boolean |
equals(ItemStack other,
boolean checkAmount,
boolean checkMeta,
boolean checkUserData) |
int |
getAmount() |
Collection<EnchantmentInstance> |
getEnchantments() |
ItemType |
getItemType() |
List<String> |
getLore() |
Optional<String> |
getName() |
default boolean |
isFull() |
static boolean |
isInvalid(ItemStack item) |
boolean |
isMergeable(ItemStack itemStack) |
static boolean |
isNull(ItemStack item) |
boolean |
isSimilar(ItemStack itemStack) |
ItemStackBuilder |
toBuilder() |
RecipeItemStackBuilder |
toRecipeBuilder() |
ensureMetadata, getMetadataItemType getItemType()
int getAmount()
Collection<EnchantmentInstance> getEnchantments()
ItemStackBuilder toBuilder()
RecipeItemStackBuilder toRecipeBuilder()
default boolean isFull()
Copyright © 2017–2019 NukkitX. All rights reserved.