net.minecraft.loot.function

public class SetInstrumentLootFunction

extends ConditionalLootFunction

All mapped superinterfaces:

LootFunction, LootContextAware, LootTableReportable

net.minecraft.world.level.storage.loot.functions.SetInstrumentFunction
net.minecraft.world.level.storage.loot.functions.SetInstrumentFunction
net.minecraft.class_7431
net.minecraft.loot.function.SetInstrumentLootFunction

Field summary

Modifier and TypeField
public static final com.mojang.serialization.MapCodec<SetInstrumentLootFunction>
MAP_CODEC
MAP_CODEC
field_45844
CODEC
private final RegistryEntryList<Instrument>
options
options
field_39184
options

Constructor summary

ModifierConstructor
private (List<LootCondition> conditions, RegistryEntryList<Instrument> options)

Method summary

Modifier and TypeMethod
public com.mojang.serialization.MapCodec<SetInstrumentLootFunction>
codec()
codec()
method_1_738()
getCodec()
public ItemStack
run(ItemStack itemStack, LootContext context)
run(ItemStack itemStack, LootContext context)
method_522(class_1799 arg0, class_47 arg1)
process(ItemStack arg0, LootContext arg1)
public static ConditionalLootFunction$Builder<?>
setInstrumentOptions(HolderSet<Instrument> options)
setInstrumentOptions(HolderSet<Instrument> options)
method_43571(class_6885<class_7444> arg0)
builder(RegistryEntryList<Instrument> arg0)