public abstract class ItemArmor extends Item implements ItemDurable
| Modifier and Type | Field and Description |
|---|---|
static int |
TIER_CHAIN |
static int |
TIER_DIAMOND |
static int |
TIER_GOLD |
static int |
TIER_IRON |
static int |
TIER_LEATHER |
static int |
TIER_NETHERITE |
static int |
TIER_OTHER |
| Constructor and Description |
|---|
ItemArmor(Identifier id) |
| Modifier and Type | Method and Description |
|---|---|
int |
getEnchantAbility() |
int |
getMaxStackSize() |
boolean |
isArmor() |
boolean |
isUnbreakable() |
void |
loadAdditionalData(com.nukkitx.nbt.NbtMap tag) |
boolean |
onClickAir(Player player,
com.nukkitx.math.vector.Vector3f directionVector)
Called when a player uses the item on air, for example throwing a projectile.
|
void |
saveAdditionalData(com.nukkitx.nbt.NbtMapBuilder tag) |
void |
setUnbreakable(boolean unbreakable) |
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, isAxe, isBoots, isChestplate, isCreativeItem, isHelmet, isHoe, isLeggings, isNull, isPickaxe, isShears, isShovel, isSword, isTool, onActivate, onMetaChange, onRelease, onUse, removeCreativeItem, setCount, setCustomName, setLore, setLore, setMeta, setTag, toNetwork, toNetwork, toNetwork, toString, useOn, useOnpublic static final int TIER_LEATHER
public static final int TIER_IRON
public static final int TIER_CHAIN
public static final int TIER_GOLD
public static final int TIER_DIAMOND
public static final int TIER_NETHERITE
public static final int TIER_OTHER
public ItemArmor(Identifier id)
public int getMaxStackSize()
getMaxStackSize in class Itempublic boolean onClickAir(Player player, com.nukkitx.math.vector.Vector3f directionVector)
ItemonClickAir in class Itemplayer - playerdirectionVector - directionpublic int getEnchantAbility()
getEnchantAbility in class Itempublic void loadAdditionalData(com.nukkitx.nbt.NbtMap tag)
loadAdditionalData in class Itempublic void saveAdditionalData(com.nukkitx.nbt.NbtMapBuilder tag)
saveAdditionalData in class Itempublic boolean isUnbreakable()
isUnbreakable in class Itempublic void setUnbreakable(boolean unbreakable)
Copyright © 2020. All rights reserved.