Interface TradeOffers.Factory

All Known Implementing Classes:
TradeOffers.BuyForOneEmeraldFactory, TradeOffers.EnchantBookFactory, TradeOffers.ProcessItemFactory, TradeOffers.SellDyedArmorFactory, TradeOffers.SellEnchantedToolFactory, TradeOffers.SellItemFactory, TradeOffers.SellMapFactory, TradeOffers.SellPotionHoldingItemFactory, TradeOffers.SellSuspiciousStewFactory, TradeOffers.TypeAwareBuyForOneEmeraldFactory
Enclosing class:
TradeOffers

public static interface TradeOffers.Factory
A factory to create trade offers.
Mappings:
Namespace Name
official bni$f
intermediary net/minecraft/class_3853$class_1652
named net/minecraft/village/TradeOffers$Factory
  • Method Details

    • create

      @Nullable @Nullable TradeOffer create(Entity entity, Random random)
      Creates a trade offer.
      Returns:
      a new trade offer, or null if none should be created
      Mappings:
      Namespace Name Mixin selector
      official a Lbni$f;a(Lawt;Ljava/util/Random;)Lbzb;
      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;