| Modifier and Type | Class and Description |
|---|---|
static class |
ItemFirework.FireworkExplosion |
| Constructor and Description |
|---|
ItemFirework(Identifier id) |
| Modifier and Type | Method and Description |
|---|---|
void |
addExplosion(ItemFirework.FireworkExplosion explosion) |
boolean |
canBeActivated() |
void |
clearExplosions() |
void |
loadAdditionalData(com.nukkitx.nbt.NbtMap tag) |
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.
|
void |
saveAdditionalData(com.nukkitx.nbt.NbtMapBuilder tag) |
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, getMaxStackSize, 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, onMetaChange, onRelease, onUse, removeCreativeItem, setCount, setCustomName, setLore, setLore, setMeta, setTag, toNetwork, toNetwork, toNetwork, toString, useOn, useOnpublic ItemFirework(Identifier id)
public void loadAdditionalData(com.nukkitx.nbt.NbtMap tag)
loadAdditionalData in class Itempublic void saveAdditionalData(com.nukkitx.nbt.NbtMapBuilder tag)
saveAdditionalData 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 - directionpublic void addExplosion(ItemFirework.FireworkExplosion explosion)
public void clearExplosions()
Copyright © 2020. All rights reserved.