public class ItemFishingRodBehavior extends ItemToolBehavior
DURABILITY_BOW, DURABILITY_DIAMOND, DURABILITY_FISHING_ROD, DURABILITY_FLINT_STEEL, DURABILITY_GOLD, DURABILITY_IRON, DURABILITY_NETHERITE, DURABILITY_SHEARS, DURABILITY_STONE, DURABILITY_TRIDENT, DURABILITY_WOODEN, tierType, toolType, TYPE_AXE, TYPE_HANDS_ONLY, TYPE_NONE, TYPE_PICKAXE, TYPE_SHEARS, TYPE_SHOVEL, TYPE_SWORD| Constructor and Description |
|---|
ItemFishingRodBehavior() |
| Modifier and Type | Method and Description |
|---|---|
int |
getEnchantAbility(org.cloudburstmc.api.item.ItemStack item) |
int |
getMaxDurability() |
int |
getMaxStackSize(org.cloudburstmc.api.item.ItemStack item) |
boolean |
onClickAir(org.cloudburstmc.api.item.ItemStack item,
com.nukkitx.math.vector.Vector3f directionVector,
org.cloudburstmc.api.player.Player player)
Called when a player uses the item on air, for example throwing a projectile.
|
org.cloudburstmc.api.item.ItemStack |
onUse(org.cloudburstmc.api.item.ItemStack item,
int ticksUsed,
org.cloudburstmc.api.player.Player p) |
isAxe, isHoe, isPickaxe, isShears, isShovel, isSword, isTool, isUnbreakable, useOn, useOncanBeActivated, canBePlaced, canDestroy, canPlaceOn, getArmorPoints, getAttackDamage, getBlock, getFuelTime, getTier, getToolType, getToughness, isArmor, isBoots, isChestplate, isHelmet, isLeggings, onActivate, onReleasepublic int getEnchantAbility(org.cloudburstmc.api.item.ItemStack item)
getEnchantAbility in interface org.cloudburstmc.api.item.behavior.ItemBehaviorgetEnchantAbility in class ItemToolBehaviorpublic int getMaxStackSize(org.cloudburstmc.api.item.ItemStack item)
getMaxStackSize in interface org.cloudburstmc.api.item.behavior.ItemBehaviorgetMaxStackSize in class ItemToolBehaviorpublic boolean onClickAir(org.cloudburstmc.api.item.ItemStack item,
com.nukkitx.math.vector.Vector3f directionVector,
org.cloudburstmc.api.player.Player player)
CloudItemBehavioronClickAir in interface org.cloudburstmc.api.item.behavior.ItemBehavioronClickAir in class CloudItemBehaviordirectionVector - directionplayer - playerpublic org.cloudburstmc.api.item.ItemStack onUse(org.cloudburstmc.api.item.ItemStack item,
int ticksUsed,
org.cloudburstmc.api.player.Player p)
onUse in interface org.cloudburstmc.api.item.behavior.ItemBehavioronUse in class CloudItemBehaviorpublic int getMaxDurability()
getMaxDurability in interface org.cloudburstmc.api.item.behavior.ItemBehaviorgetMaxDurability in class CloudItemBehaviorCopyright © 2021. All rights reserved.