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
official bju$d
intermediary net/minecraft/class_3853$class_1648
named net/minecraft/village/TradeOffers$EnchantBookFactory
  • Field Details

    • experience

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

    • EnchantBookFactory

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

    • 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
      official a Lbju$f;a(Latf;Ljava/util/Random;)Lbvm;
      intermediary method_7246 Lnet/minecraft/class_3853$class_1652;method_7246(Lnet/minecraft/class_1297;Ljava/util/Random;)Lnet/minecraft/class_1914;
      named create Lnet/minecraft/village/TradeOffers$Factory;create(Lnet/minecraft/entity/Entity;Ljava/util/Random;)Lnet/minecraft/village/TradeOffer;