public abstract class ItemArmorBehavior extends CloudItemBehavior
| Constructor and Description |
|---|
ItemArmorBehavior() |
| Modifier and Type | Method and Description |
|---|---|
int |
getEnchantAbility(org.cloudburstmc.api.item.ItemStack item) |
boolean |
isArmor() |
boolean |
isBoots() |
boolean |
isChestplate() |
boolean |
isHelmet() |
boolean |
isLeggings() |
boolean |
onClickAir(org.cloudburstmc.api.item.ItemStack item,
com.nukkitx.math.vector.Vector3f directionVector,
org.cloudburstmc.api.player.Player p)
Called when a player uses the item on air, for example throwing a projectile.
|
canBeActivated, canBePlaced, canDestroy, canPlaceOn, getArmorPoints, getAttackDamage, getBlock, getFuelTime, getMaxDurability, getMaxStackSize, getTier, getToolType, getToughness, isAxe, isHoe, isPickaxe, isShears, isShovel, isSword, isTool, isUnbreakable, onActivate, onRelease, onUse, useOn, useOnpublic boolean isArmor()
isArmor in interface org.cloudburstmc.api.item.behavior.ItemBehaviorisArmor in class CloudItemBehaviorpublic boolean isHelmet()
isHelmet in interface org.cloudburstmc.api.item.behavior.ItemBehaviorisHelmet in class CloudItemBehaviorpublic boolean isChestplate()
isChestplate in interface org.cloudburstmc.api.item.behavior.ItemBehaviorisChestplate in class CloudItemBehaviorpublic boolean isLeggings()
isLeggings in interface org.cloudburstmc.api.item.behavior.ItemBehaviorisLeggings in class CloudItemBehaviorpublic boolean isBoots()
isBoots in interface org.cloudburstmc.api.item.behavior.ItemBehaviorisBoots in class CloudItemBehaviorpublic boolean onClickAir(org.cloudburstmc.api.item.ItemStack item,
com.nukkitx.math.vector.Vector3f directionVector,
org.cloudburstmc.api.player.Player p)
CloudItemBehavioronClickAir in interface org.cloudburstmc.api.item.behavior.ItemBehavioronClickAir in class CloudItemBehaviordirectionVector - directionp - playerpublic int getEnchantAbility(org.cloudburstmc.api.item.ItemStack item)
getEnchantAbility in interface org.cloudburstmc.api.item.behavior.ItemBehaviorgetEnchantAbility in class CloudItemBehaviorCopyright © 2021. All rights reserved.