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.
  • Method Summary

    Modifier and Type Method Description
    TradeOffer create​(Entity entity, Random random)
    Creates a trade offer.
  • Method Details

    • create

      @Nullable TradeOffer create​(Entity entity, Random random)
      Creates a trade offer.
      Returns:
      a new trade offer, or null if none should be created