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 bsw$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 Lbsw$f;a(Lbaq;Lalu;)Lcey;
      intermediary method_7246 Lnet/minecraft/class_3853$class_1652;method_7246(Lnet/minecraft/class_1297;Lnet/minecraft/class_5819;)Lnet/minecraft/class_1914;
      named create Lnet/minecraft/village/TradeOffers$Factory;create(Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/random/Random;)Lnet/minecraft/village/TradeOffer;