Class SetFireworkExplosionFunction
java.lang.Object
net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction
net.minecraft.world.level.storage.loot.functions.SetFireworkExplosionFunction
- All Implemented Interfaces:
BiFunction<ItemStack,
,LootContext, ItemStack> LootItemFunction
,LootContextUser
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction
LootItemConditionalFunction.Builder<T extends LootItemConditionalFunction.Builder<T>>, LootItemConditionalFunction.DummyBuilder
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec
<SetFireworkExplosionFunction> (package private) final Optional
<it.unimi.dsi.fastutil.ints.IntList> static final FireworkExplosion
(package private) final Optional
<it.unimi.dsi.fastutil.ints.IntList> (package private) final Optional
<FireworkExplosion.Shape> Fields inherited from class net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction
predicates
-
Constructor Summary
ConstructorDescriptionSetFireworkExplosionFunction
(List<LootItemCondition> p_328435_, Optional<FireworkExplosion.Shape> p_335053_, Optional<it.unimi.dsi.fastutil.ints.IntList> p_331523_, Optional<it.unimi.dsi.fastutil.ints.IntList> p_331948_, Optional<Boolean> p_330337_, Optional<Boolean> p_335969_) -
Method Summary
Modifier and TypeMethodDescriptionprivate FireworkExplosion
apply
(FireworkExplosion p_329657_) getType()
protected ItemStack
run
(ItemStack p_328627_, LootContext p_327748_) Methods inherited from class net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction
apply, commonFields, simpleBuilder, validate
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.function.BiFunction
andThen
Methods inherited from interface net.minecraft.world.level.storage.loot.LootContextUser
getReferencedContextParams
-
Field Details
-
CODEC
-
DEFAULT_VALUE
-
shape
-
colors
-
fadeColors
-
trail
-
twinkle
-
-
Constructor Details
-
SetFireworkExplosionFunction
public SetFireworkExplosionFunction(List<LootItemCondition> p_328435_, Optional<FireworkExplosion.Shape> p_335053_, Optional<it.unimi.dsi.fastutil.ints.IntList> p_331523_, Optional<it.unimi.dsi.fastutil.ints.IntList> p_331948_, Optional<Boolean> p_330337_, Optional<Boolean> p_335969_)
-
-
Method Details
-
run
- Specified by:
run
in classLootItemConditionalFunction
-
apply
-
getType
- Specified by:
getType
in interfaceLootItemFunction
- Specified by:
getType
in classLootItemConditionalFunction
-