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

public class SetFireworksFunction

extends LootItemConditionalFunction

All mapped superinterfaces:

LootItemFunction, LootContextUser

eys
net.minecraft.world.level.storage.loot.functions.SetFireworksFunction
net.minecraft.class_9376
net.minecraft.loot.function.SetFireworksLootFunction
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
public static final Fireworks
b
DEFAULT_VALUE
field_49882
DEFAULT_FIREWORKS
private final Optional<ListOperation$StandAlone<FireworkExplosion>>
c
explosions
field_49883
explosions
private final Optional<Integer>
d
flightDuration
field_49885
flightDuration

Constructor summary

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

Method summary

Modifier and TypeMethod
protected ItemStack
a(cxp arg0, ewp arg1)
run(ItemStack arg0, LootContext arg1)
method_522(class_1799 arg0, class_47 arg1)
process(ItemStack arg0, LootContext arg1)
private Fireworks
a(daf arg0)
apply(Fireworks arg0)
method_58212(class_9284 arg0)
apply(FireworksComponent fireworksComponent)
public LootItemFunctionType<SetFireworksFunction>
b()
getType()
method_29321()
getType()