public class ItemBucketBehavior extends CloudItemBehavior
| Constructor and Description |
|---|
ItemBucketBehavior() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canBeActivated() |
static org.cloudburstmc.api.block.BlockType |
getBlockIdFromDamage(org.cloudburstmc.api.item.data.Bucket data) |
org.cloudburstmc.api.item.data.Bucket |
getDamageFromIdentifier(org.cloudburstmc.api.block.BlockType id) |
short |
getFuelTime(org.cloudburstmc.api.item.ItemStack item) |
int |
getMaxStackSize(org.cloudburstmc.api.item.ItemStack item) |
protected static String |
getName(int meta) |
org.cloudburstmc.api.item.ItemStack |
onActivate(org.cloudburstmc.api.item.ItemStack itemStack,
org.cloudburstmc.api.player.Player player,
org.cloudburstmc.api.block.Block block,
org.cloudburstmc.api.block.Block target,
org.cloudburstmc.api.util.Direction face,
com.nukkitx.math.vector.Vector3f clickPos,
org.cloudburstmc.api.level.Level level) |
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) |
canBePlaced, canDestroy, canPlaceOn, getArmorPoints, getAttackDamage, getBlock, getEnchantAbility, getMaxDurability, getTier, getToolType, getToughness, isArmor, isAxe, isBoots, isChestplate, isHelmet, isHoe, isLeggings, isPickaxe, isShears, isShovel, isSword, isTool, isUnbreakable, onRelease, useOn, useOnprotected static String getName(int meta)
public static org.cloudburstmc.api.block.BlockType getBlockIdFromDamage(org.cloudburstmc.api.item.data.Bucket data)
public org.cloudburstmc.api.item.data.Bucket getDamageFromIdentifier(org.cloudburstmc.api.block.BlockType id)
public int getMaxStackSize(org.cloudburstmc.api.item.ItemStack item)
getMaxStackSize in interface org.cloudburstmc.api.item.behavior.ItemBehaviorgetMaxStackSize in class CloudItemBehaviorpublic boolean canBeActivated()
canBeActivated in interface org.cloudburstmc.api.item.behavior.ItemBehaviorcanBeActivated in class CloudItemBehaviorpublic org.cloudburstmc.api.item.ItemStack onActivate(org.cloudburstmc.api.item.ItemStack itemStack,
org.cloudburstmc.api.player.Player player,
org.cloudburstmc.api.block.Block block,
org.cloudburstmc.api.block.Block target,
org.cloudburstmc.api.util.Direction face,
com.nukkitx.math.vector.Vector3f clickPos,
org.cloudburstmc.api.level.Level level)
onActivate in interface org.cloudburstmc.api.item.behavior.ItemBehavioronActivate 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 CloudItemBehaviorpublic short getFuelTime(org.cloudburstmc.api.item.ItemStack item)
getFuelTime in interface org.cloudburstmc.api.item.behavior.ItemBehaviorgetFuelTime in class CloudItemBehaviorCopyright © 2021. All rights reserved.