public class ItemTridentBehavior 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 |
|---|
ItemTridentBehavior() |
| Modifier and Type | Method and Description |
|---|---|
int |
getAttackDamage(org.cloudburstmc.api.item.ItemStack item) |
int |
getMaxDurability() |
boolean |
isSword() |
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 |
onRelease(org.cloudburstmc.api.item.ItemStack item,
int ticksUsed,
org.cloudburstmc.api.player.Player player) |
getEnchantAbility, getMaxStackSize, isAxe, isHoe, isPickaxe, isShears, isShovel, isTool, isUnbreakable, useOn, useOncanBeActivated, canBePlaced, canDestroy, canPlaceOn, getArmorPoints, getBlock, getFuelTime, getTier, getToolType, getToughness, isArmor, isBoots, isChestplate, isHelmet, isLeggings, onActivate, onUsepublic int getMaxDurability()
getMaxDurability in interface org.cloudburstmc.api.item.behavior.ItemBehaviorgetMaxDurability in class CloudItemBehaviorpublic boolean isSword()
isSword in interface org.cloudburstmc.api.item.behavior.ItemBehaviorisSword in class ItemToolBehaviorpublic int getAttackDamage(org.cloudburstmc.api.item.ItemStack item)
getAttackDamage in interface org.cloudburstmc.api.item.behavior.ItemBehaviorgetAttackDamage in class CloudItemBehaviorpublic 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 onRelease(org.cloudburstmc.api.item.ItemStack item,
int ticksUsed,
org.cloudburstmc.api.player.Player player)
onRelease in interface org.cloudburstmc.api.item.behavior.ItemBehavioronRelease in class CloudItemBehaviorCopyright © 2021. All rights reserved.