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
named net/minecraft/village/TradeOffers$SellMapFactory
intermediary net/minecraft/class_3853$class_1654
official cmp$l
  • Field Details

    • price

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

      private final TagKey<Structure> structure
      Mappings:
      Namespace Name Mixin selector
      named structure Lnet/minecraft/village/TradeOffers$SellMapFactory;structure:Lnet/minecraft/registry/tag/TagKey;
      intermediary field_7474 Lnet/minecraft/class_3853$class_1654;field_7474:Lnet/minecraft/class_6862;
      official b Lcmp$l;b:Laxf;
    • nameKey

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

      private final RegistryEntry<MapDecorationType> decoration
      Mappings:
      Namespace Name Mixin selector
      named decoration Lnet/minecraft/village/TradeOffers$SellMapFactory;decoration:Lnet/minecraft/registry/entry/RegistryEntry;
      intermediary field_7473 Lnet/minecraft/class_3853$class_1654;field_7473:Lnet/minecraft/class_6880;
      official d Lcmp$l;d:Lji;
    • maxUses

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

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

    • SellMapFactory

      public SellMapFactory(int price, TagKey<Structure> structure, String nameKey, RegistryEntry<MapDecorationType> decoration, int maxUses, int experience)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/village/TradeOffers$SellMapFactory;<init>(ILnet/minecraft/registry/tag/TagKey;Ljava/lang/String;Lnet/minecraft/registry/entry/RegistryEntry;II)V
      intermediary <init> Lnet/minecraft/class_3853$class_1654;<init>(ILnet/minecraft/class_6862;Ljava/lang/String;Lnet/minecraft/class_6880;II)V
      official <init> Lcmp$l;<init>(ILaxf;Ljava/lang/String;Lji;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
      named create Lnet/minecraft/village/TradeOffers$Factory;create(Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/random/Random;)Lnet/minecraft/village/TradeOffer;
      intermediary method_7246 Lnet/minecraft/class_3853$class_1652;method_7246(Lnet/minecraft/class_1297;Lnet/minecraft/class_5819;)Lnet/minecraft/class_1914;
      official a Lcmp$g;a(Lbsv;Lazh;)Ldax;