Class ItemToolBehavior

java.lang.Object
org.cloudburstmc.server.item.behavior.CloudItemBehavior
org.cloudburstmc.server.item.behavior.ItemToolBehavior
All Implemented Interfaces:
org.cloudburstmc.api.item.behavior.ItemBehavior
Direct Known Subclasses:
ItemBowBehavior, ItemFishingRodBehavior, ItemFlintSteelBehavior, ItemTridentBehavior

public abstract class ItemToolBehavior extends CloudItemBehavior
author: MagicDroidX Nukkit Project
  • Field Details

  • Constructor Details

    • ItemToolBehavior

      public ItemToolBehavior()
  • Method Details

    • getMaxStackSize

      public int getMaxStackSize(org.cloudburstmc.api.item.ItemStack item)
      Specified by:
      getMaxStackSize in interface org.cloudburstmc.api.item.behavior.ItemBehavior
      Overrides:
      getMaxStackSize in class CloudItemBehavior
    • useOn

      public org.cloudburstmc.api.item.ItemStack useOn(org.cloudburstmc.api.item.ItemStack item, org.cloudburstmc.api.block.BlockState state)
      Specified by:
      useOn in interface org.cloudburstmc.api.item.behavior.ItemBehavior
      Overrides:
      useOn in class CloudItemBehavior
    • useOn

      public org.cloudburstmc.api.item.ItemStack useOn(org.cloudburstmc.api.item.ItemStack item, org.cloudburstmc.api.entity.Entity entity)
      Specified by:
      useOn in interface org.cloudburstmc.api.item.behavior.ItemBehavior
      Overrides:
      useOn in class CloudItemBehavior
    • isUnbreakable

      public boolean isUnbreakable(org.cloudburstmc.api.item.ItemStack item)
      Specified by:
      isUnbreakable in interface org.cloudburstmc.api.item.behavior.ItemBehavior
      Overrides:
      isUnbreakable in class CloudItemBehavior
    • isPickaxe

      public boolean isPickaxe()
      Specified by:
      isPickaxe in interface org.cloudburstmc.api.item.behavior.ItemBehavior
      Overrides:
      isPickaxe in class CloudItemBehavior
    • isAxe

      public boolean isAxe()
      Specified by:
      isAxe in interface org.cloudburstmc.api.item.behavior.ItemBehavior
      Overrides:
      isAxe in class CloudItemBehavior
    • isSword

      public boolean isSword()
      Specified by:
      isSword in interface org.cloudburstmc.api.item.behavior.ItemBehavior
      Overrides:
      isSword in class CloudItemBehavior
    • isShovel

      public boolean isShovel()
      Specified by:
      isShovel in interface org.cloudburstmc.api.item.behavior.ItemBehavior
      Overrides:
      isShovel in class CloudItemBehavior
    • isHoe

      public boolean isHoe()
      Specified by:
      isHoe in interface org.cloudburstmc.api.item.behavior.ItemBehavior
      Overrides:
      isHoe in class CloudItemBehavior
    • isShears

      public boolean isShears()
      Specified by:
      isShears in interface org.cloudburstmc.api.item.behavior.ItemBehavior
      Overrides:
      isShears in class CloudItemBehavior
    • isTool

      public boolean isTool(org.cloudburstmc.api.item.ItemStack item)
      Specified by:
      isTool in interface org.cloudburstmc.api.item.behavior.ItemBehavior
      Overrides:
      isTool in class CloudItemBehavior
    • getEnchantAbility

      public int getEnchantAbility(org.cloudburstmc.api.item.ItemStack item)
      Specified by:
      getEnchantAbility in interface org.cloudburstmc.api.item.behavior.ItemBehavior
      Overrides:
      getEnchantAbility in class CloudItemBehavior