public abstract class ItemToolBehavior extends CloudItemBehavior
| Modifier and Type | Field and Description |
|---|---|
static int |
DURABILITY_BOW |
static int |
DURABILITY_DIAMOND |
static int |
DURABILITY_FISHING_ROD |
static int |
DURABILITY_FLINT_STEEL |
static int |
DURABILITY_GOLD |
static int |
DURABILITY_IRON |
static int |
DURABILITY_NETHERITE |
static int |
DURABILITY_SHEARS |
static int |
DURABILITY_STONE |
static int |
DURABILITY_TRIDENT |
static int |
DURABILITY_WOODEN |
protected org.cloudburstmc.api.item.TierType |
tierType |
protected org.cloudburstmc.api.item.ToolType |
toolType |
static int |
TYPE_AXE |
static int |
TYPE_HANDS_ONLY
Same breaking speed independent of the tool.
|
static int |
TYPE_NONE |
static int |
TYPE_PICKAXE |
static int |
TYPE_SHEARS |
static int |
TYPE_SHOVEL |
static int |
TYPE_SWORD |
| Constructor and Description |
|---|
ItemToolBehavior() |
| Modifier and Type | Method and Description |
|---|---|
int |
getEnchantAbility(org.cloudburstmc.api.item.ItemStack item) |
int |
getMaxStackSize(org.cloudburstmc.api.item.ItemStack item) |
boolean |
isAxe() |
boolean |
isHoe() |
boolean |
isPickaxe() |
boolean |
isShears() |
boolean |
isShovel() |
boolean |
isSword() |
boolean |
isTool(org.cloudburstmc.api.item.ItemStack item) |
boolean |
isUnbreakable(org.cloudburstmc.api.item.ItemStack item) |
org.cloudburstmc.api.item.ItemStack |
useOn(org.cloudburstmc.api.item.ItemStack item,
org.cloudburstmc.api.block.BlockState state) |
org.cloudburstmc.api.item.ItemStack |
useOn(org.cloudburstmc.api.item.ItemStack item,
org.cloudburstmc.api.entity.Entity entity) |
canBeActivated, canBePlaced, canDestroy, canPlaceOn, getArmorPoints, getAttackDamage, getBlock, getFuelTime, getMaxDurability, getTier, getToolType, getToughness, isArmor, isBoots, isChestplate, isHelmet, isLeggings, onActivate, onClickAir, onRelease, onUsepublic static final int TYPE_NONE
public static final int TYPE_SWORD
public static final int TYPE_SHOVEL
public static final int TYPE_PICKAXE
public static final int TYPE_AXE
public static final int TYPE_SHEARS
public static final int TYPE_HANDS_ONLY
public static final int DURABILITY_WOODEN
public static final int DURABILITY_GOLD
public static final int DURABILITY_STONE
public static final int DURABILITY_IRON
public static final int DURABILITY_DIAMOND
public static final int DURABILITY_NETHERITE
public static final int DURABILITY_FLINT_STEEL
public static final int DURABILITY_SHEARS
public static final int DURABILITY_BOW
public static final int DURABILITY_TRIDENT
public static final int DURABILITY_FISHING_ROD
protected final org.cloudburstmc.api.item.ToolType toolType
protected final org.cloudburstmc.api.item.TierType tierType
public int getMaxStackSize(org.cloudburstmc.api.item.ItemStack item)
getMaxStackSize in interface org.cloudburstmc.api.item.behavior.ItemBehaviorgetMaxStackSize in class CloudItemBehaviorpublic org.cloudburstmc.api.item.ItemStack useOn(org.cloudburstmc.api.item.ItemStack item,
org.cloudburstmc.api.block.BlockState state)
useOn in interface org.cloudburstmc.api.item.behavior.ItemBehavioruseOn in class CloudItemBehaviorpublic org.cloudburstmc.api.item.ItemStack useOn(org.cloudburstmc.api.item.ItemStack item,
org.cloudburstmc.api.entity.Entity entity)
useOn in interface org.cloudburstmc.api.item.behavior.ItemBehavioruseOn in class CloudItemBehaviorpublic boolean isUnbreakable(org.cloudburstmc.api.item.ItemStack item)
isUnbreakable in interface org.cloudburstmc.api.item.behavior.ItemBehaviorisUnbreakable in class CloudItemBehaviorpublic boolean isPickaxe()
isPickaxe in interface org.cloudburstmc.api.item.behavior.ItemBehaviorisPickaxe in class CloudItemBehaviorpublic boolean isAxe()
isAxe in interface org.cloudburstmc.api.item.behavior.ItemBehaviorisAxe in class CloudItemBehaviorpublic boolean isSword()
isSword in interface org.cloudburstmc.api.item.behavior.ItemBehaviorisSword in class CloudItemBehaviorpublic boolean isShovel()
isShovel in interface org.cloudburstmc.api.item.behavior.ItemBehaviorisShovel in class CloudItemBehaviorpublic boolean isHoe()
isHoe in interface org.cloudburstmc.api.item.behavior.ItemBehaviorisHoe in class CloudItemBehaviorpublic boolean isShears()
isShears in interface org.cloudburstmc.api.item.behavior.ItemBehaviorisShears in class CloudItemBehaviorpublic boolean isTool(org.cloudburstmc.api.item.ItemStack item)
isTool in interface org.cloudburstmc.api.item.behavior.ItemBehaviorisTool in class CloudItemBehaviorpublic int getEnchantAbility(org.cloudburstmc.api.item.ItemStack item)
getEnchantAbility in interface org.cloudburstmc.api.item.behavior.ItemBehaviorgetEnchantAbility in class CloudItemBehaviorCopyright © 2021. All rights reserved.