public abstract class ItemEdibleBehavior extends CloudItemBehavior
| Constructor and Description |
|---|
ItemEdibleBehavior() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
org.cloudburstmc.api.item.ItemStack |
onUse(org.cloudburstmc.api.item.ItemStack item,
int ticksUsed,
org.cloudburstmc.api.player.Player player) |
canBeActivated, canBePlaced, canDestroy, canPlaceOn, getArmorPoints, getAttackDamage, getBlock, getEnchantAbility, getFuelTime, getMaxDurability, getMaxStackSize, getTier, getToolType, getToughness, isArmor, isAxe, isBoots, isChestplate, isHelmet, isHoe, isLeggings, isPickaxe, isShears, isShovel, isSword, isTool, isUnbreakable, onActivate, onRelease, useOn, useOnpublic 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 org.cloudburstmc.api.item.ItemStack onUse(org.cloudburstmc.api.item.ItemStack item,
int ticksUsed,
org.cloudburstmc.api.player.Player player)
onUse in interface org.cloudburstmc.api.item.behavior.ItemBehavioronUse in class CloudItemBehaviorCopyright © 2021. All rights reserved.