extends ConditionalLootFunction
All mapped superinterfaces:
LootFunction, LootContextAware, LootTableReportable
| net.minecraft.world.level.storage.loot.functions.SetEnchantmentsFunction | |
| net.minecraft.world.level.storage.loot.functions.SetEnchantmentsFunction | |
| net.minecraft.class_5642 | |
| net.minecraft.loot.function.SetEnchantmentsLootFunction |
Field summary
| Modifier and Type | Field | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| public static final com.mojang.serialization.MapCodec<SetEnchantmentsLootFunction> |
| ||||||||
| private final Map<RegistryEntry<Enchantment>, LootNumberProvider> |
| ||||||||
| private final boolean |
|
Constructor summary
| Modifier | Constructor |
|---|---|
| private | (List<LootCondition> conditions, Map<RegistryEntry<Enchantment>, LootNumberProvider> enchantments, boolean add) |
Method summary
| Modifier and Type | Method | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| public com.mojang.serialization.MapCodec<SetEnchantmentsLootFunction> |
| ||||||||
| public void |
| ||||||||
| public ItemStack |
|