@Immutable public class RecipeItemStack extends CloudItemStack
amount, canDestroy, canPlaceOn, data, dataTag, enchantments, id, itemLore, itemName, nbt, networkData, NONE_VALUE, type| Constructor and Description |
|---|
RecipeItemStack(org.cloudburstmc.api.item.ItemStack item,
boolean hasMeta) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canDestroy(org.cloudburstmc.api.block.BlockState state) |
boolean |
canPlaceOn(org.cloudburstmc.api.block.BlockState state) |
org.cloudburstmc.api.item.ItemStack |
decrementAmount() |
org.cloudburstmc.api.item.ItemStack |
decrementAmount(int amount) |
boolean |
equals(org.cloudburstmc.api.item.ItemStack item) |
boolean |
equals(org.cloudburstmc.api.item.ItemStack other,
boolean checkAmount) |
boolean |
equals(org.cloudburstmc.api.item.ItemStack other,
boolean checkAmount,
boolean checkData) |
int |
getAmount() |
org.cloudburstmc.api.item.behavior.ItemBehavior |
getBehavior() |
org.cloudburstmc.api.block.BlockState |
getBlockState() |
Collection<org.cloudburstmc.api.util.Identifier> |
getCanDestroy() |
Collection<org.cloudburstmc.api.util.Identifier> |
getCanPlaceOn() |
org.cloudburstmc.api.enchantment.EnchantmentInstance |
getEnchantment(org.cloudburstmc.api.enchantment.EnchantmentType enchantment) |
Map<org.cloudburstmc.api.enchantment.EnchantmentType,org.cloudburstmc.api.enchantment.EnchantmentInstance> |
getEnchantments() |
List<String> |
getLore() |
<T> T |
getMetadata(Class<T> metadataClass) |
<T> T |
getMetadata(Class<T> metadataClass,
T defaultValue) |
String |
getName() |
org.cloudburstmc.api.item.ItemType |
getType() |
boolean |
hasEnchantments() |
boolean |
hasName() |
boolean |
hasTag() |
org.cloudburstmc.api.item.ItemStack |
incrementAmount() |
org.cloudburstmc.api.item.ItemStack |
incrementAmount(int amount) |
boolean |
isFull() |
boolean |
isMergeable(org.cloudburstmc.api.item.ItemStack itemStack) |
boolean |
isNull() |
org.cloudburstmc.api.item.ItemStackBuilder |
toBuilder() |
org.cloudburstmc.api.item.ItemStack |
withAmount(int amount) |
org.cloudburstmc.api.item.ItemStack |
withData(Class<?> metadataClass,
Object data) |
org.cloudburstmc.api.item.ItemStack |
withData(Object data) |
org.cloudburstmc.api.item.ItemStack |
withEnchantment(org.cloudburstmc.api.enchantment.EnchantmentInstance enchantment) |
equals, getData, getDataTag, getId, getNbt, getNetworkData, hashCodepublic RecipeItemStack(org.cloudburstmc.api.item.ItemStack item,
boolean hasMeta)
public boolean hasTag()
hasTag in interface org.cloudburstmc.api.item.ItemStackhasTag in class CloudItemStackpublic org.cloudburstmc.api.item.ItemType getType()
getType in interface org.cloudburstmc.api.item.ItemStackgetType in class CloudItemStackpublic int getAmount()
getAmount in interface org.cloudburstmc.api.item.ItemStackgetAmount in class CloudItemStackpublic boolean isNull()
public String getName()
getName in interface org.cloudburstmc.api.item.ItemStackgetName in class CloudItemStackpublic boolean hasName()
public List<String> getLore()
getLore in interface org.cloudburstmc.api.item.ItemStackgetLore in class CloudItemStackpublic boolean hasEnchantments()
public Map<org.cloudburstmc.api.enchantment.EnchantmentType,org.cloudburstmc.api.enchantment.EnchantmentInstance> getEnchantments()
getEnchantments in interface org.cloudburstmc.api.item.ItemStackgetEnchantments in class CloudItemStackpublic org.cloudburstmc.api.enchantment.EnchantmentInstance getEnchantment(org.cloudburstmc.api.enchantment.EnchantmentType enchantment)
public Collection<org.cloudburstmc.api.util.Identifier> getCanDestroy()
getCanDestroy in interface org.cloudburstmc.api.item.ItemStackgetCanDestroy in class CloudItemStackpublic boolean canDestroy(org.cloudburstmc.api.block.BlockState state)
public Collection<org.cloudburstmc.api.util.Identifier> getCanPlaceOn()
getCanPlaceOn in interface org.cloudburstmc.api.item.ItemStackgetCanPlaceOn in class CloudItemStackpublic boolean canPlaceOn(org.cloudburstmc.api.block.BlockState state)
public <T> T getMetadata(Class<T> metadataClass)
public <T> T getMetadata(Class<T> metadataClass, T defaultValue)
getMetadata in interface org.cloudburstmc.api.item.ItemStackgetMetadata in class CloudItemStackpublic org.cloudburstmc.api.item.ItemStackBuilder toBuilder()
toBuilder in interface org.cloudburstmc.api.item.ItemStacktoBuilder in class CloudItemStackpublic org.cloudburstmc.api.item.behavior.ItemBehavior getBehavior()
getBehavior in interface org.cloudburstmc.api.item.ItemStackgetBehavior in class CloudItemStackpublic boolean isMergeable(@Nonnull org.cloudburstmc.api.item.ItemStack itemStack)
isMergeable in interface org.cloudburstmc.api.item.ItemStackisMergeable in class CloudItemStackpublic boolean equals(@Nullable org.cloudburstmc.api.item.ItemStack item)
equals in interface org.cloudburstmc.api.item.ItemStackequals in class CloudItemStackpublic boolean isFull()
public boolean equals(@Nullable org.cloudburstmc.api.item.ItemStack other, boolean checkAmount)
public boolean equals(@Nullable org.cloudburstmc.api.item.ItemStack other, boolean checkAmount, boolean checkData)
equals in interface org.cloudburstmc.api.item.ItemStackequals in class CloudItemStackpublic org.cloudburstmc.api.item.ItemStack decrementAmount()
public org.cloudburstmc.api.item.ItemStack decrementAmount(int amount)
public org.cloudburstmc.api.item.ItemStack incrementAmount()
public org.cloudburstmc.api.item.ItemStack incrementAmount(int amount)
public org.cloudburstmc.api.item.ItemStack withAmount(int amount)
public org.cloudburstmc.api.item.ItemStack withEnchantment(org.cloudburstmc.api.enchantment.EnchantmentInstance enchantment)
public org.cloudburstmc.api.item.ItemStack withData(Object data)
withData in interface org.cloudburstmc.api.item.ItemStackwithData in class CloudItemStackpublic org.cloudburstmc.api.item.ItemStack withData(Class<?> metadataClass, Object data)
withData in interface org.cloudburstmc.api.item.ItemStackwithData in class CloudItemStackpublic org.cloudburstmc.api.block.BlockState getBlockState()
Copyright © 2021. All rights reserved.