public class ItemBow extends ItemTool
DURABILITY_BOW, DURABILITY_DIAMOND, DURABILITY_FISHING_ROD, DURABILITY_FLINT_STEEL, DURABILITY_GOLD, DURABILITY_IRON, DURABILITY_NETHERITE, DURABILITY_SHEARS, DURABILITY_STONE, DURABILITY_TRIDENT, DURABILITY_WOODEN, TIER_DIAMOND, TIER_GOLD, TIER_IRON, TIER_NETHERITE, TIER_STONE, TIER_WOODEN, TYPE_AXE, TYPE_HANDS_ONLY, TYPE_NONE, TYPE_PICKAXE, TYPE_SHEARS, TYPE_SHOVEL, TYPE_SWORD| Constructor and Description |
|---|
ItemBow(Identifier id) |
| Modifier and Type | Method and Description |
|---|---|
int |
getEnchantAbility() |
int |
getMaxDurability() |
boolean |
onClickAir(Player player,
com.nukkitx.math.vector.Vector3f directionVector)
Called when a player uses the item on air, for example throwing a projectile.
|
boolean |
onRelease(Player player,
int ticksUsed) |
getMaxStackSize, isAxe, isHoe, isPickaxe, isShears, isShovel, isSword, isTool, isUnbreakable, loadAdditionalData, saveAdditionalData, setUnbreakable, useOn, useOnaddCreativeItem, addEnchantment, addTag, canBeActivated, canBePlaced, canDestroy, canPlaceOn, clearCreativeItems, clearCustomName, clone, createTag, decrementCount, decrementCount, deepEquals, deepEquals, deepEquals, equals, equals, equals, equalsExact, fromJson, fromNetwork, fromString, fromStringMultiple, get, get, get, get, get, get, get, get, get, get, getArmorPoints, getAttackDamage, getBlock, getCount, getCreativeItem, getCreativeItemIndex, getCreativeItems, getCustomName, getDestroySpeed, getEnchantment, getEnchantment, getEnchantments, getFuelTime, getId, getLore, getMeta, getName, getNetworkId, getTag, getTier, getToughness, hasCustomName, hasEnchantments, hasMeta, hasNbtMap, incrementCount, incrementCount, initCreativeItems, isArmor, isBoots, isChestplate, isCreativeItem, isHelmet, isLeggings, isNull, onActivate, onMetaChange, onUse, removeCreativeItem, setCount, setCustomName, setLore, setLore, setMeta, setTag, toNetwork, toNetwork, toNetwork, toStringpublic ItemBow(Identifier id)
public int getMaxDurability()
getMaxDurability in class Itempublic int getEnchantAbility()
getEnchantAbility in class ItemToolpublic boolean onClickAir(Player player, com.nukkitx.math.vector.Vector3f directionVector)
ItemonClickAir in class Itemplayer - playerdirectionVector - directionCopyright © 2020. All rights reserved.