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

public class SetCustomModelDataFunction

extends LootItemConditionalFunction

All mapped superinterfaces:

LootItemFunction, LootContextUser

fan
net.minecraft.world.level.storage.loot.functions.SetCustomModelDataFunction
net.minecraft.class_9670
net.minecraft.loot.function.SetCustomModelDataLootFunction

Field summary

Modifier and TypeField
private static final com.mojang.serialization.Codec<NumberProvider>
b
COLOR_PROVIDER_CODEC
field_55219
COLOR_CODEC
public static final com.mojang.serialization.MapCodec<SetCustomModelDataFunction>
a
CODEC
field_51434
CODEC
private final Optional<ListOperation$StandAlone<NumberProvider>>
c
floats
field_55220
floats
private final Optional<ListOperation$StandAlone<Boolean>>
d
flags
field_55221
flags
private final Optional<ListOperation$StandAlone<String>>
e
strings
field_55222
strings
private final Optional<ListOperation$StandAlone<NumberProvider>>
f
colors
field_55223
colors

Constructor summary

ModifierConstructor
public (List<LootItemCondition> conditions, Optional<ListOperation$StandAlone<NumberProvider>> floats, Optional<ListOperation$StandAlone<Boolean>> flags, Optional<ListOperation$StandAlone<String>> strings, Optional<ListOperation$StandAlone<NumberProvider>> colors)

Method summary

Modifier and TypeMethod
public Set<ContextKey<?>>
a()
getReferencedContextParams()
method_293()
getAllowedParameters()
public LootItemFunctionType<SetCustomModelDataFunction>
b()
getType()
method_29321()
getType()
private static <T> List<T>
a(Optional<ezz$e<T>> arg0, List<T> arg1)
apply(Optional<ListOperation$StandAlone<T>> arg0, List<T> arg1)
method_65379(Optional<class_9368$class_9677<T>> arg0, List<T> arg1)
apply(Optional<ListOperation$Values<T>> values, List<T> current)
private static <T, E> List<E>
a(Optional<ezz$e<T>> arg0, List<E> arg1, Function<T, E> arg2)
apply(Optional<ListOperation$StandAlone<T>> arg0, List<E> arg1, Function<T, E> arg2)
method_65380(Optional<class_9368$class_9677<T>> arg0, List<E> arg1, Function<T, E> arg2)
apply(Optional<ListOperation$Values<T>> values, List<E> current, Function<T, E> operationValueToAppliedValue)
public ItemStack
a(cys arg0, eyn arg1)
run(ItemStack arg0, LootContext arg1)
method_522(class_1799 arg0, class_47 arg1)
process(ItemStack arg0, LootContext arg1)