Class TradeOffers.SellMapFactory

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

private static class TradeOffers.SellMapFactory extends Object implements TradeOffers.Factory
Mappings:
Namespace Name
official boa$k
intermediary net/minecraft/class_3853$class_1654
named net/minecraft/village/TradeOffers$SellMapFactory
  • Field Details

    • price

      private final int price
      Mappings:
      Namespace Name Mixin selector
      official a Lboa$k;a:I
      intermediary field_18589 Lnet/minecraft/class_3853$class_1654;field_18589:I
      named price Lnet/minecraft/village/TradeOffers$SellMapFactory;price:I
    • structure

      private final TagKey<ConfiguredStructureFeature<?,?>> structure
      Mappings:
      Namespace Name Mixin selector
      official b Lboa$k;b:Laif;
      intermediary field_7474 Lnet/minecraft/class_3853$class_1654;field_7474:Lnet/minecraft/class_6862;
      named structure Lnet/minecraft/village/TradeOffers$SellMapFactory;structure:Lnet/minecraft/tag/TagKey;
    • nameKey

      private final String nameKey
      Mappings:
      Namespace Name Mixin selector
      official c Lboa$k;c:Ljava/lang/String;
      intermediary field_37051 Lnet/minecraft/class_3853$class_1654;field_37051:Ljava/lang/String;
      named nameKey Lnet/minecraft/village/TradeOffers$SellMapFactory;nameKey:Ljava/lang/String;
    • iconType

      private final MapIcon.Type iconType
      Mappings:
      Namespace Name Mixin selector
      official d Lboa$k;d:Ldkc$a;
      intermediary field_7473 Lnet/minecraft/class_3853$class_1654;field_7473:Lnet/minecraft/class_20$class_21;
      named iconType Lnet/minecraft/village/TradeOffers$SellMapFactory;iconType:Lnet/minecraft/item/map/MapIcon$Type;
    • maxUses

      private final int maxUses
      Mappings:
      Namespace Name Mixin selector
      official e Lboa$k;e:I
      intermediary field_18590 Lnet/minecraft/class_3853$class_1654;field_18590:I
      named maxUses Lnet/minecraft/village/TradeOffers$SellMapFactory;maxUses:I
    • experience

      private final int experience
      Mappings:
      Namespace Name Mixin selector
      official f Lboa$k;f:I
      intermediary field_18591 Lnet/minecraft/class_3853$class_1654;field_18591:I
      named experience Lnet/minecraft/village/TradeOffers$SellMapFactory;experience:I
  • Constructor Details

    • SellMapFactory

      public SellMapFactory(int price, TagKey<ConfiguredStructureFeature<?,?>> structure, String nameKey, MapIcon.Type iconType, int maxUses, int experience)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lboa$k;<init>(ILaif;Ljava/lang/String;Ldkc$a;II)V
      intermediary <init> Lnet/minecraft/class_3853$class_1654;<init>(ILnet/minecraft/class_6862;Ljava/lang/String;Lnet/minecraft/class_20$class_21;II)V
      named <init> Lnet/minecraft/village/TradeOffers$SellMapFactory;<init>(ILnet/minecraft/tag/TagKey;Ljava/lang/String;Lnet/minecraft/item/map/MapIcon$Type;II)V
  • Method Details

    • create

      @Nullable public @Nullable 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 Lboa$f;a(Laxk;Ljava/util/Random;)Lbzt;
      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;