public class FireworkItem extends Item
| Modifier and Type | Class and Description |
|---|---|
static class |
FireworkItem.Type |
Item.SettingsATTACK_DAMAGE_MODIFIER_UUID, ATTACK_SPEED_MODIFIER_UUID, BLOCK_ITEMS, group, RANDOM| Constructor and Description |
|---|
FireworkItem(Item.Settings settings) |
| Modifier and Type | Method and Description |
|---|---|
void |
appendTooltip(ItemStack stack,
World world,
List<Text> tooltip,
TooltipContext context) |
TypedActionResult<ItemStack> |
use(World world,
PlayerEntity user,
Hand hand) |
ActionResult |
useOnBlock(ItemUsageContext context) |
addPropertyGetter, appendStacks, asItem, byRawId, canMine, canRepair, damage, finishUsing, fromBlock, getDrinkSound, getEatSound, getEnchantability, getFoodComponent, getGroup, getMaxCount, getMaxDamage, getMaxUseTime, getMiningSpeedMultiplier, getModifiers, getName, getName, getOrCreateTranslationKey, getPropertyGetter, getRarity, getRawId, getRecipeRemainder, getStackForRender, getTranslationKey, getTranslationKey, getUseAction, hasEnchantmentGlint, hasPropertyGetters, hasRecipeRemainder, inventoryTick, isDamageable, isEffectiveOn, isEnchantable, isFireproof, isFood, isIn, isIn, isNetworkSynced, isUsedOnRelease, onCraft, onStoppedUsing, postHit, postMine, postProcessTag, rayTrace, shouldSyncTagToClient, toString, usageTick, useOnEntitypublic FireworkItem(Item.Settings settings)
public ActionResult useOnBlock(ItemUsageContext context)
useOnBlock in class Itempublic TypedActionResult<ItemStack> use(World world, PlayerEntity user, Hand hand)
@Environment(value=CLIENT) public void appendTooltip(ItemStack stack, @Nullable World world, List<Text> tooltip, TooltipContext context)
appendTooltip in class Item