Class TradeOffers.EnchantBookFactory

java.lang.Object
net.minecraft.village.TradeOffers.EnchantBookFactory
All Implemented Interfaces:
TradeOffers.Factory
Enclosing class:
TradeOffers

private static class TradeOffers.EnchantBookFactory extends Object implements TradeOffers.Factory
Mappings:
Namespace Name
named net/minecraft/village/TradeOffers$EnchantBookFactory
intermediary net/minecraft/class_3853$class_1648
official cmp$d
  • Field Details

    • experience

      private final int experience
      Mappings:
      Namespace Name Mixin selector
      named experience Lnet/minecraft/village/TradeOffers$EnchantBookFactory;experience:I
      intermediary field_18557 Lnet/minecraft/class_3853$class_1648;field_18557:I
      official a Lcmp$d;a:I
    • possibleEnchantments

      private final List<Enchantment> possibleEnchantments
      Mappings:
      Namespace Name Mixin selector
      named possibleEnchantments Lnet/minecraft/village/TradeOffers$EnchantBookFactory;possibleEnchantments:Ljava/util/List;
      intermediary field_45131 Lnet/minecraft/class_3853$class_1648;field_45131:Ljava/util/List;
      official b Lcmp$d;b:Ljava/util/List;
    • minLevel

      private final int minLevel
      Mappings:
      Namespace Name Mixin selector
      named minLevel Lnet/minecraft/village/TradeOffers$EnchantBookFactory;minLevel:I
      intermediary field_45132 Lnet/minecraft/class_3853$class_1648;field_45132:I
      official c Lcmp$d;c:I
    • maxLevel

      private final int maxLevel
      Mappings:
      Namespace Name Mixin selector
      named maxLevel Lnet/minecraft/village/TradeOffers$EnchantBookFactory;maxLevel:I
      intermediary field_45133 Lnet/minecraft/class_3853$class_1648;field_45133:I
      official d Lcmp$d;d:I
  • Constructor Details

    • EnchantBookFactory

      public EnchantBookFactory(int experience)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/village/TradeOffers$EnchantBookFactory;<init>(I)V
      intermediary <init> Lnet/minecraft/class_3853$class_1648;<init>(I)V
      official <init> Lcmp$d;<init>(I)V
    • EnchantBookFactory

      public EnchantBookFactory(int experience, Enchantment[] possibleEnchantments)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/village/TradeOffers$EnchantBookFactory;<init>(I[Lnet/minecraft/enchantment/Enchantment;)V
      intermediary <init> Lnet/minecraft/class_3853$class_1648;<init>(I[Lnet/minecraft/class_1887;)V
      official <init> Lcmp$d;<init>(I[Ldab;)V
    • EnchantBookFactory

      public EnchantBookFactory(int experience, int minLevel, int maxLevel, Enchantment[] possibleEnchantments)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/village/TradeOffers$EnchantBookFactory;<init>(III[Lnet/minecraft/enchantment/Enchantment;)V
      intermediary <init> Lnet/minecraft/class_3853$class_1648;<init>(III[Lnet/minecraft/class_1887;)V
      official <init> Lcmp$d;<init>(III[Ldab;)V
  • Method Details

    • chooseEnchantment

      private Enchantment chooseEnchantment(Random random, FeatureSet enabledFeatures)
      Mappings:
      Namespace Name Mixin selector
      named chooseEnchantment Lnet/minecraft/village/TradeOffers$EnchantBookFactory;chooseEnchantment(Lnet/minecraft/util/math/random/Random;Lnet/minecraft/resource/featuretoggle/FeatureSet;)Lnet/minecraft/enchantment/Enchantment;
      intermediary method_59891 Lnet/minecraft/class_3853$class_1648;method_59891(Lnet/minecraft/class_5819;Lnet/minecraft/class_7699;)Lnet/minecraft/class_1887;
      official a Lcmp$d;a(Lazh;Lcpm;)Ldab;
    • create

      public TradeOffer create(Entity entity, Random random)
      Creates a trade offer.
      Specified by:
      create in interface TradeOffers.Factory
      Returns:
      a new trade offer, or null if none should be created
      Mappings:
      Namespace Name Mixin selector
      named create Lnet/minecraft/village/TradeOffers$Factory;create(Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/random/Random;)Lnet/minecraft/village/TradeOffer;
      intermediary method_7246 Lnet/minecraft/class_3853$class_1652;method_7246(Lnet/minecraft/class_1297;Lnet/minecraft/class_5819;)Lnet/minecraft/class_1914;
      official a Lcmp$g;a(Lbsv;Lazh;)Ldax;