@Nonnull @Immutable public interface ItemStack
| Modifier and Type | Method and Description |
|---|---|
<T> T |
ensureMetadata(Class<T> metadataClass) |
boolean |
equals(ItemStack item) |
boolean |
equals(ItemStack other,
boolean checkAmount,
boolean checkData) |
int |
getAmount() |
Collection<Identifier> |
getCanDestroy() |
Collection<Identifier> |
getCanPlaceOn() |
Collection<Enchantment> |
getEnchantments() |
List<String> |
getLore() |
<T> Optional<T> |
getMetadata(Class<T> metadataClass) |
Optional<String> |
getName() |
ItemType |
getType() |
default boolean |
isFull() |
static boolean |
isInvalid(ItemStack item) |
boolean |
isMergeable(ItemStack itemStack) |
static boolean |
isNull(ItemStack item) |
boolean |
isSimilar(ItemStack itemStack) |
ItemStackBuilder |
toBuilder() |
ItemType getType()
int getAmount()
Collection<Enchantment> getEnchantments()
Collection<Identifier> getCanDestroy()
Collection<Identifier> getCanPlaceOn()
<T> T ensureMetadata(Class<T> metadataClass)
ItemStackBuilder toBuilder()
default boolean isFull()
Copyright © 2020. All rights reserved.