public class ItemPotionBehavior extends CloudItemBehavior
| Constructor and Description |
|---|
ItemPotionBehavior() |
| Modifier and Type | Method and Description |
|---|---|
int |
getMaxStackSize(org.cloudburstmc.api.item.ItemStack item) |
boolean |
onClickAir(org.cloudburstmc.api.item.ItemStack item,
com.nukkitx.math.vector.Vector3f directionVector,
org.cloudburstmc.api.player.Player player)
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, getTier, getToolType, getToughness, isArmor, isAxe, isBoots, isChestplate, isHelmet, isHoe, isLeggings, isPickaxe, isShears, isShovel, isSword, isTool, isUnbreakable, onActivate, onRelease, useOn, useOnpublic int getMaxStackSize(org.cloudburstmc.api.item.ItemStack item)
getMaxStackSize in interface org.cloudburstmc.api.item.behavior.ItemBehaviorgetMaxStackSize in class CloudItemBehaviorpublic boolean onClickAir(org.cloudburstmc.api.item.ItemStack item,
com.nukkitx.math.vector.Vector3f directionVector,
org.cloudburstmc.api.player.Player player)
CloudItemBehavioronClickAir in interface org.cloudburstmc.api.item.behavior.ItemBehavioronClickAir in class CloudItemBehaviordirectionVector - directionplayer - 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.