| Constructor and Description |
|---|
ItemBucket(Identifier id) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canBeActivated() |
static Identifier |
getBlockIdFromDamage(int target) |
int |
getDamageFromIdentifier(Identifier id) |
int |
getMaxStackSize() |
protected static String |
getName(int meta) |
boolean |
onActivate(Level level,
Player player,
Block block,
Block target,
Direction face,
com.nukkitx.math.vector.Vector3f clickPos) |
boolean |
onClickAir(Player player,
com.nukkitx.math.vector.Vector3f directionVector)
Called when a player uses the item on air, for example throwing a projectile.
|
boolean |
onUse(Player player,
int ticksUsed) |
addCreativeItem, addEnchantment, addTag, canBePlaced, canDestroy, canPlaceOn, clearCreativeItems, clearCustomName, clone, createTag, decrementCount, decrementCount, deepEquals, deepEquals, deepEquals, equals, equals, equals, equalsExact, fromJson, fromNetwork, fromString, fromStringMultiple, get, get, get, get, get, get, get, get, get, get, getArmorPoints, getAttackDamage, getBlock, getCount, getCreativeItem, getCreativeItemIndex, getCreativeItems, getCustomName, getDestroySpeed, getEnchantAbility, getEnchantment, getEnchantment, getEnchantments, getFuelTime, getId, getLore, getMaxDurability, getMeta, getName, getNetworkId, getTag, getTier, getToughness, hasCustomName, hasEnchantments, hasMeta, hasNbtMap, incrementCount, incrementCount, initCreativeItems, isArmor, isAxe, isBoots, isChestplate, isCreativeItem, isHelmet, isHoe, isLeggings, isNull, isPickaxe, isShears, isShovel, isSword, isTool, isUnbreakable, loadAdditionalData, onMetaChange, onRelease, removeCreativeItem, saveAdditionalData, setCount, setCustomName, setLore, setLore, setMeta, setTag, toNetwork, toNetwork, toNetwork, toString, useOn, useOnpublic ItemBucket(Identifier id)
protected static String getName(int meta)
public static Identifier getBlockIdFromDamage(int target)
public int getDamageFromIdentifier(Identifier id)
public int getMaxStackSize()
getMaxStackSize in class Itempublic boolean canBeActivated()
canBeActivated in class Itempublic boolean onActivate(Level level, Player player, Block block, Block target, Direction face, com.nukkitx.math.vector.Vector3f clickPos)
onActivate in class Itempublic boolean onClickAir(Player player, com.nukkitx.math.vector.Vector3f directionVector)
ItemonClickAir in class Itemplayer - playerdirectionVector - directionCopyright © 2020. All rights reserved.