net.minecraft.world.level.storage.loot.functions

public class SetFireworksFunction

extends LootItemConditionalFunction

All mapped superinterfaces:

LootItemFunction, LootContextUser

esn
net.minecraft.world.level.storage.loot.functions.SetFireworksFunction
net.minecraft.class_9376
net.minecraft.loot.function.SetFireworksLootFunction
net.minecraft.src.C_313567_
net.minecraft.world.level.storage.loot.functions.SetFireworksFunction

Field summary

Modifier and TypeField
public static final com.mojang.serialization.MapCodec<SetFireworksFunction>
a
CODEC
field_49881
CODEC
f_316516_
public static final Fireworks
b
DEFAULT_VALUE
field_49882
DEFAULT_FIREWORKS
f_314460_
private final Optional<ListOperation$StandAlone<FireworkExplosion>>
c
explosions
field_49883
explosions
f_316748_
private final Optional<Integer>
d
flightDuration
field_49885
flightDuration
f_315337_

Constructor summary

ModifierConstructor
protected (List<LootItemCondition> conditions, Optional<ListOperation$StandAlone<FireworkExplosion>> explosions, Optional<Integer> flightDuration)

Method summary

Modifier and TypeMethod
protected ItemStack
a(cur arg0, eqk arg1)
run(ItemStack arg0, LootContext arg1)
method_522(class_1799 arg0, class_47 arg1)
process(ItemStack arg0, LootContext arg1)
m_7372_(C_1391_ p_328031_, C_2811_ arg1)
private Fireworks
a(cxl arg0)
apply(Fireworks arg0)
method_58212(class_9284 arg0)
apply(FireworksComponent fireworksComponent)
m_324619_(C_313625_ arg0)
public LootItemFunctionType<SetFireworksFunction>
b()
getType()
method_29321()
getType()
m_7162_()