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

public class SetFireworksFunction

extends LootItemConditionalFunction

All mapped superinterfaces:

LootItemFunction, LootContextUser

fdr
net.minecraft.world.level.storage.loot.functions.SetFireworksFunction
net.minecraft.class_9376

Field summary

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

Constructor summary

ModifierConstructor
protected (List<LootItemCondition> arg0, Optional<ListOperation$StandAlone<FireworkExplosion>> arg1, Optional<Integer> arg2)

Method summary

Modifier and TypeMethod
protected ItemStack
a(dba arg0, fbo arg1)
run(ItemStack arg0, LootContext arg1)
method_522(class_1799 arg0, class_47 arg1)
private Fireworks
a(ddp arg0)
apply(Fireworks arg0)
method_58212(class_9284 arg0)
public LootItemFunctionType<SetFireworksFunction>
b()
getType()
method_29321()