public interface ItemBehavior
-
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleancanBePlaced(ItemStack item) booleancanDestroy(ItemStack item, Identifier identifier) booleancanPlaceOn(ItemStack item, Identifier identifier) intgetArmorPoints(ItemStack item) intgetAttackDamage(ItemStack item) intgetEnchantAbility(ItemStack item) shortgetFuelTime(ItemStack item) intintgetMaxStackSize(ItemStack item) getToolType(ItemStack item) intgetToughness(ItemStack item) booleanisArmor()booleanisAxe()booleanisBoots()booleanbooleanisHelmet()booleanisHoe()booleanbooleanbooleanisShears()booleanisShovel()booleanisSword()booleanbooleanisUnbreakable(ItemStack item) onActivate(ItemStack itemStack, Player player, Block block, Block target, Direction face, com.nukkitx.math.vector.Vector3f clickPos, Level level) booleanonClickAir(ItemStack item, com.nukkitx.math.vector.Vector3f directionVector, Player player) useOn(ItemStack item, BlockState block)
-
Method Details
-
canBeActivated
boolean canBeActivated() -
canPlaceOn
-
canDestroy
-
canBePlaced
-
getBlock
-
getMaxStackSize
-
getFuelTime
-
useOn
-
useOn
-
isTool
-
getMaxDurability
int getMaxDurability() -
getTier
-
getToolType
-
isPickaxe
boolean isPickaxe() -
isAxe
boolean isAxe() -
isSword
boolean isSword() -
isShovel
boolean isShovel() -
isHoe
boolean isHoe() -
isShears
boolean isShears() -
isArmor
boolean isArmor() -
isHelmet
boolean isHelmet() -
isChestplate
boolean isChestplate() -
isLeggings
boolean isLeggings() -
isBoots
boolean isBoots() -
getEnchantAbility
-
getAttackDamage
-
getArmorPoints
-
getToughness
-
isUnbreakable
-
onUse
-
onRelease
-
onActivate
-
onClickAir
-