public abstract class ItemTool extends Item implements ItemDurable
| 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_SHEARS |
static int |
DURABILITY_STONE |
static int |
DURABILITY_TRIDENT |
static int |
DURABILITY_WOODEN |
static int |
TIER_DIAMOND |
static int |
TIER_GOLD |
static int |
TIER_IRON |
static int |
TIER_STONE |
static int |
TIER_WOODEN |
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 |
|---|
ItemTool(Identifier id) |
| Modifier and Type | Method and Description |
|---|---|
int |
getEnchantAbility() |
int |
getMaxStackSize() |
boolean |
isAxe() |
boolean |
isHoe() |
boolean |
isPickaxe() |
boolean |
isShears() |
boolean |
isShovel() |
boolean |
isSword() |
boolean |
isTool() |
boolean |
isUnbreakable() |
void |
loadAdditionalData(com.nukkitx.nbt.NbtMap tag) |
void |
saveAdditionalData(com.nukkitx.nbt.NbtMapBuilder tag) |
void |
setUnbreakable(boolean unbreakable) |
boolean |
useOn(Block block) |
boolean |
useOn(Entity entity) |
addCreativeItem, 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, getMaxDurability, getMeta, getName, getNetworkId, getTag, getTier, getToughness, hasCustomName, hasEnchantments, hasMeta, hasNbtMap, incrementCount, incrementCount, initCreativeItems, isArmor, isBoots, isChestplate, isCreativeItem, isHelmet, isLeggings, isNull, onActivate, onClickAir, onMetaChange, onRelease, onUse, removeCreativeItem, setCount, setCustomName, setLore, setLore, setMeta, setTag, toNetwork, toNetwork, toNetwork, toStringpublic static final int TIER_WOODEN
public static final int TIER_GOLD
public static final int TIER_STONE
public static final int TIER_IRON
public static final int TIER_DIAMOND
public 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_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
public ItemTool(Identifier id)
public void loadAdditionalData(com.nukkitx.nbt.NbtMap tag)
loadAdditionalData in class Itempublic void saveAdditionalData(com.nukkitx.nbt.NbtMapBuilder tag)
saveAdditionalData in class Itempublic int getMaxStackSize()
getMaxStackSize in class Itempublic boolean isUnbreakable()
isUnbreakable in class Itempublic void setUnbreakable(boolean unbreakable)
public int getEnchantAbility()
getEnchantAbility in class ItemCopyright © 2020. All rights reserved.