net.minecraft.loot.function

public class SetFireworksLootFunction

extends ConditionalLootFunction

All mapped superinterfaces:

LootFunction, LootContextAware, LootTableReportable

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

Field summary

Modifier and TypeField
public static final com.mojang.serialization.MapCodec<SetFireworksLootFunction>
MAP_CODEC
MAP_CODEC
field_49881
CODEC
public static final FireworksComponent
DEFAULT_VALUE
DEFAULT_VALUE
field_49882
DEFAULT_FIREWORKS
private final Optional<ListOperation$Values<FireworkExplosionComponent>>
explosions
explosions
field_49883
explosions
private final Optional<Integer>
flightDuration
flightDuration
field_49885
flightDuration

Constructor summary

ModifierConstructor
protected (List<LootCondition> conditions, Optional<ListOperation$Values<FireworkExplosionComponent>> explosions, Optional<Integer> flightDuration)

Method summary

Modifier and TypeMethod
protected ItemStack
run(ItemStack itemStack, LootContext context)
run(ItemStack itemStack, LootContext context)
method_522(class_1799 arg0, class_47 arg1)
process(ItemStack arg0, LootContext arg1)
private FireworksComponent
apply(Fireworks old)
apply(Fireworks old)
method_58212(class_9284 arg0)
apply(FireworksComponent fireworksComponent)
public com.mojang.serialization.MapCodec<SetFireworksLootFunction>
codec()
codec()
method_1_738()
getCodec()