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
FieldsModifier 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
ConstructorsConstructorDescriptionSetFireworkExplosionFunction
(List<LootItemCondition> p_333763_, Optional<FireworkExplosion.Shape> p_333814_, Optional<it.unimi.dsi.fastutil.ints.IntList> p_333974_, Optional<it.unimi.dsi.fastutil.ints.IntList> p_333764_, Optional<Boolean> p_333876_, Optional<Boolean> p_334022_) -
Method Summary
Modifier and TypeMethodDescriptionprivate FireworkExplosion
apply
(FireworkExplosion p_333781_) getType()
protected ItemStack
run
(ItemStack p_334066_, LootContext p_333987_) 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_333763_, Optional<FireworkExplosion.Shape> p_333814_, Optional<it.unimi.dsi.fastutil.ints.IntList> p_333974_, Optional<it.unimi.dsi.fastutil.ints.IntList> p_333764_, Optional<Boolean> p_333876_, Optional<Boolean> p_334022_)
-
-
Method Details
-
run
- Specified by:
run
in classLootItemConditionalFunction
-
apply
-
getType
- Specified by:
getType
in interfaceLootItemFunction
- Specified by:
getType
in classLootItemConditionalFunction
-