Class RecipeItemStack

java.lang.Object
org.cloudburstmc.server.item.CloudItemStack
org.cloudburstmc.server.item.RecipeItemStack
All Implemented Interfaces:
Comparable<org.cloudburstmc.api.item.ItemStack>, org.cloudburstmc.api.item.ItemStack

@Immutable public class RecipeItemStack extends CloudItemStack
  • Constructor Details

    • RecipeItemStack

      public RecipeItemStack(org.cloudburstmc.api.item.ItemStack item, boolean hasMeta)
  • Method Details

    • hasTag

      public boolean hasTag()
      Specified by:
      hasTag in interface org.cloudburstmc.api.item.ItemStack
      Overrides:
      hasTag in class CloudItemStack
    • getType

      public org.cloudburstmc.api.item.ItemType getType()
      Specified by:
      getType in interface org.cloudburstmc.api.item.ItemStack
      Overrides:
      getType in class CloudItemStack
    • getAmount

      public int getAmount()
      Specified by:
      getAmount in interface org.cloudburstmc.api.item.ItemStack
      Overrides:
      getAmount in class CloudItemStack
    • isNull

      public boolean isNull()
      Specified by:
      isNull in interface org.cloudburstmc.api.item.ItemStack
      Overrides:
      isNull in class CloudItemStack
    • getName

      public String getName()
      Specified by:
      getName in interface org.cloudburstmc.api.item.ItemStack
      Overrides:
      getName in class CloudItemStack
    • hasName

      public boolean hasName()
    • getLore

      public List<String> getLore()
      Specified by:
      getLore in interface org.cloudburstmc.api.item.ItemStack
      Overrides:
      getLore in class CloudItemStack
    • hasEnchantments

      public boolean hasEnchantments()
    • getEnchantments

      public Map<org.cloudburstmc.api.enchantment.EnchantmentType,​org.cloudburstmc.api.enchantment.EnchantmentInstance> getEnchantments()
      Specified by:
      getEnchantments in interface org.cloudburstmc.api.item.ItemStack
      Overrides:
      getEnchantments in class CloudItemStack
    • getEnchantment

      public org.cloudburstmc.api.enchantment.EnchantmentInstance getEnchantment(org.cloudburstmc.api.enchantment.EnchantmentType enchantment)
    • getCanDestroy

      public Collection<org.cloudburstmc.api.util.Identifier> getCanDestroy()
      Specified by:
      getCanDestroy in interface org.cloudburstmc.api.item.ItemStack
      Overrides:
      getCanDestroy in class CloudItemStack
    • canDestroy

      public boolean canDestroy(org.cloudburstmc.api.block.BlockState state)
    • getCanPlaceOn

      public Collection<org.cloudburstmc.api.util.Identifier> getCanPlaceOn()
      Specified by:
      getCanPlaceOn in interface org.cloudburstmc.api.item.ItemStack
      Overrides:
      getCanPlaceOn in class CloudItemStack
    • canPlaceOn

      public boolean canPlaceOn(org.cloudburstmc.api.block.BlockState state)
    • getMetadata

      public <T> T getMetadata(Class<T> metadataClass)
    • getMetadata

      public <T> T getMetadata(Class<T> metadataClass, T defaultValue)
      Specified by:
      getMetadata in interface org.cloudburstmc.api.item.ItemStack
      Overrides:
      getMetadata in class CloudItemStack
    • toBuilder

      public org.cloudburstmc.api.item.ItemStackBuilder toBuilder()
      Specified by:
      toBuilder in interface org.cloudburstmc.api.item.ItemStack
      Overrides:
      toBuilder in class CloudItemStack
    • getBehavior

      public org.cloudburstmc.api.item.behavior.ItemBehavior getBehavior()
      Specified by:
      getBehavior in interface org.cloudburstmc.api.item.ItemStack
      Overrides:
      getBehavior in class CloudItemStack
    • isMergeable

      public boolean isMergeable(@Nonnull org.cloudburstmc.api.item.ItemStack itemStack)
      Specified by:
      isMergeable in interface org.cloudburstmc.api.item.ItemStack
      Overrides:
      isMergeable in class CloudItemStack
    • equals

      public boolean equals(@Nullable org.cloudburstmc.api.item.ItemStack item)
      Specified by:
      equals in interface org.cloudburstmc.api.item.ItemStack
      Overrides:
      equals in class CloudItemStack
    • isFull

      public boolean isFull()
    • equals

      public boolean equals(@Nullable org.cloudburstmc.api.item.ItemStack other, boolean checkAmount)
    • equals

      public boolean equals(@Nullable org.cloudburstmc.api.item.ItemStack other, boolean checkAmount, boolean checkData)
      Specified by:
      equals in interface org.cloudburstmc.api.item.ItemStack
      Overrides:
      equals in class CloudItemStack
    • decrementAmount

      public org.cloudburstmc.api.item.ItemStack decrementAmount()
    • decrementAmount

      public org.cloudburstmc.api.item.ItemStack decrementAmount(int amount)
    • incrementAmount

      public org.cloudburstmc.api.item.ItemStack incrementAmount()
    • incrementAmount

      public org.cloudburstmc.api.item.ItemStack incrementAmount(int amount)
    • withAmount

      public org.cloudburstmc.api.item.ItemStack withAmount(int amount)
    • withEnchantment

      public org.cloudburstmc.api.item.ItemStack withEnchantment(org.cloudburstmc.api.enchantment.EnchantmentInstance enchantment)
    • withData

      public org.cloudburstmc.api.item.ItemStack withData(Object data)
      Specified by:
      withData in interface org.cloudburstmc.api.item.ItemStack
      Overrides:
      withData in class CloudItemStack
    • withData

      public org.cloudburstmc.api.item.ItemStack withData(Class<?> metadataClass, Object data)
      Specified by:
      withData in interface org.cloudburstmc.api.item.ItemStack
      Overrides:
      withData in class CloudItemStack
    • getBlockState

      public org.cloudburstmc.api.block.BlockState getBlockState()