Interface EnchantmentProvider

All Known Implementing Classes:
ByCostEnchantmentProvider, ByCostWithDifficultyEnchantmentProvider, SingleEnchantmentProvider

public interface EnchantmentProvider
Mappings:
Namespace Name
named net/minecraft/enchantment/provider/EnchantmentProvider
intermediary net/minecraft/class_9741
official dfg
  • Field Details

    • CODEC

      static final com.mojang.serialization.Codec<EnchantmentProvider> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/enchantment/provider/EnchantmentProvider;CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_51731 Lnet/minecraft/class_9741;field_51731:Lcom/mojang/serialization/Codec;
      official a Ldfg;a:Lcom/mojang/serialization/Codec;
  • Method Details

    • provideEnchantments

      void provideEnchantments(ItemStack stack, ItemEnchantmentsComponent.Builder componentBuilder, Random random, LocalDifficulty localDifficulty)
      Mappings:
      Namespace Name Mixin selector
      named provideEnchantments Lnet/minecraft/enchantment/provider/EnchantmentProvider;provideEnchantments(Lnet/minecraft/item/ItemStack;Lnet/minecraft/component/type/ItemEnchantmentsComponent$Builder;Lnet/minecraft/util/math/random/Random;Lnet/minecraft/world/LocalDifficulty;)V
      intermediary method_60266 Lnet/minecraft/class_9741;method_60266(Lnet/minecraft/class_1799;Lnet/minecraft/class_9304$class_9305;Lnet/minecraft/class_5819;Lnet/minecraft/class_1266;)V
      official a Ldfg;a(Lcxo;Ldee$a;Lbam;Lbtg;)V
    • getCodec

      com.mojang.serialization.MapCodec<? extends EnchantmentProvider> getCodec()
      Mappings:
      Namespace Name Mixin selector
      named getCodec Lnet/minecraft/enchantment/provider/EnchantmentProvider;getCodec()Lcom/mojang/serialization/MapCodec;
      intermediary method_60265 Lnet/minecraft/class_9741;method_60265()Lcom/mojang/serialization/MapCodec;
      official a Ldfg;a()Lcom/mojang/serialization/MapCodec;