Class BlockItemStack

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

public class BlockItemStack extends CloudItemStack
  • Field Details

    • blockState

      protected final org.cloudburstmc.api.block.BlockState blockState
  • Constructor Details

    • BlockItemStack

      public BlockItemStack(org.cloudburstmc.api.block.BlockState state, int amount)
    • BlockItemStack

      public BlockItemStack(org.cloudburstmc.api.block.BlockState state, int amount, String itemName, List<String> itemLore, Map<org.cloudburstmc.api.enchantment.EnchantmentType,​org.cloudburstmc.api.enchantment.EnchantmentInstance> enchantments, Collection<org.cloudburstmc.api.util.Identifier> canDestroy, Collection<org.cloudburstmc.api.util.Identifier> canPlaceOn, Map<Class<?>,​Object> data, com.nukkitx.nbt.NbtMap nbt, com.nukkitx.nbt.NbtMap dataTag, com.nukkitx.protocol.bedrock.data.inventory.ItemData networkData, int stackId)
  • Method Details

    • getBlockState

      public org.cloudburstmc.api.block.BlockState getBlockState()
    • 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