Class TradeOffers

java.lang.Object
net.minecraft.village.TradeOffers

public class TradeOffers extends Object
Mappings:
Namespace Name
named net/minecraft/village/TradeOffers
intermediary net/minecraft/class_3853
official cpm
  • Field Details

    • DEFAULT_MAX_USES

      private static final int DEFAULT_MAX_USES
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named DEFAULT_MAX_USES Lnet/minecraft/village/TradeOffers;DEFAULT_MAX_USES:I
      intermediary field_30615 Lnet/minecraft/class_3853;field_30615:I
      official e Lcpm;e:I
    • COMMON_MAX_USES

      private static final int COMMON_MAX_USES
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named COMMON_MAX_USES Lnet/minecraft/village/TradeOffers;COMMON_MAX_USES:I
      intermediary field_30616 Lnet/minecraft/class_3853;field_30616:I
      official f Lcpm;f:I
    • RARE_MAX_USES

      private static final int RARE_MAX_USES
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named RARE_MAX_USES Lnet/minecraft/village/TradeOffers;RARE_MAX_USES:I
      intermediary field_30617 Lnet/minecraft/class_3853;field_30617:I
      official g Lcpm;g:I
    • NOVICE_SELL_XP

      private static final int NOVICE_SELL_XP
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named NOVICE_SELL_XP Lnet/minecraft/village/TradeOffers;NOVICE_SELL_XP:I
      intermediary field_30618 Lnet/minecraft/class_3853;field_30618:I
      official h Lcpm;h:I
    • NOVICE_BUY_XP

      private static final int NOVICE_BUY_XP
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named NOVICE_BUY_XP Lnet/minecraft/village/TradeOffers;NOVICE_BUY_XP:I
      intermediary field_30619 Lnet/minecraft/class_3853;field_30619:I
      official i Lcpm;i:I
    • APPRENTICE_SELL_XP

      private static final int APPRENTICE_SELL_XP
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named APPRENTICE_SELL_XP Lnet/minecraft/village/TradeOffers;APPRENTICE_SELL_XP:I
      intermediary field_30620 Lnet/minecraft/class_3853;field_30620:I
      official j Lcpm;j:I
    • APPRENTICE_BUY_XP

      private static final int APPRENTICE_BUY_XP
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named APPRENTICE_BUY_XP Lnet/minecraft/village/TradeOffers;APPRENTICE_BUY_XP:I
      intermediary field_30621 Lnet/minecraft/class_3853;field_30621:I
      official k Lcpm;k:I
    • JOURNEYMAN_SELL_XP

      private static final int JOURNEYMAN_SELL_XP
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named JOURNEYMAN_SELL_XP Lnet/minecraft/village/TradeOffers;JOURNEYMAN_SELL_XP:I
      intermediary field_30622 Lnet/minecraft/class_3853;field_30622:I
      official l Lcpm;l:I
    • JOURNEYMAN_BUY_XP

      private static final int JOURNEYMAN_BUY_XP
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named JOURNEYMAN_BUY_XP Lnet/minecraft/village/TradeOffers;JOURNEYMAN_BUY_XP:I
      intermediary field_30623 Lnet/minecraft/class_3853;field_30623:I
      official m Lcpm;m:I
    • EXPERT_SELL_XP

      private static final int EXPERT_SELL_XP
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named EXPERT_SELL_XP Lnet/minecraft/village/TradeOffers;EXPERT_SELL_XP:I
      intermediary field_30624 Lnet/minecraft/class_3853;field_30624:I
      official n Lcpm;n:I
    • EXPERT_BUY_XP

      private static final int EXPERT_BUY_XP
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named EXPERT_BUY_XP Lnet/minecraft/village/TradeOffers;EXPERT_BUY_XP:I
      intermediary field_30625 Lnet/minecraft/class_3853;field_30625:I
      official o Lcpm;o:I
    • MASTER_TRADE_XP

      private static final int MASTER_TRADE_XP
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named MASTER_TRADE_XP Lnet/minecraft/village/TradeOffers;MASTER_TRADE_XP:I
      intermediary field_30626 Lnet/minecraft/class_3853;field_30626:I
      official p Lcpm;p:I
    • LOW_PRICE_MULTIPLIER

      private static final float LOW_PRICE_MULTIPLIER
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named LOW_PRICE_MULTIPLIER Lnet/minecraft/village/TradeOffers;LOW_PRICE_MULTIPLIER:F
      intermediary field_30627 Lnet/minecraft/class_3853;field_30627:F
      official q Lcpm;q:F
    • HIGH_PRICE_MULTIPLIER

      private static final float HIGH_PRICE_MULTIPLIER
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named HIGH_PRICE_MULTIPLIER Lnet/minecraft/village/TradeOffers;HIGH_PRICE_MULTIPLIER:F
      intermediary field_30628 Lnet/minecraft/class_3853;field_30628:F
      official r Lcpm;r:F
    • PROFESSION_TO_LEVELED_TRADE

      public static final Map<VillagerProfession,Int2ObjectMap<TradeOffers.Factory[]>> PROFESSION_TO_LEVELED_TRADE
      Mappings:
      Namespace Name Mixin selector
      named PROFESSION_TO_LEVELED_TRADE Lnet/minecraft/village/TradeOffers;PROFESSION_TO_LEVELED_TRADE:Ljava/util/Map;
      intermediary field_17067 Lnet/minecraft/class_3853;field_17067:Ljava/util/Map;
      official a Lcpm;a:Ljava/util/Map;
    • WANDERING_TRADER_TRADES

      public static final Int2ObjectMap<TradeOffers.Factory[]> WANDERING_TRADER_TRADES
      Mappings:
      Namespace Name Mixin selector
      named WANDERING_TRADER_TRADES Lnet/minecraft/village/TradeOffers;WANDERING_TRADER_TRADES:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;
      intermediary field_17724 Lnet/minecraft/class_3853;field_17724:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;
      official b Lcpm;b:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;
    • SELL_DESERT_VILLAGE_MAP_TRADE

      private static final TradeOffers.SellMapFactory SELL_DESERT_VILLAGE_MAP_TRADE
      Mappings:
      Namespace Name Mixin selector
      named SELL_DESERT_VILLAGE_MAP_TRADE Lnet/minecraft/village/TradeOffers;SELL_DESERT_VILLAGE_MAP_TRADE:Lnet/minecraft/village/TradeOffers$SellMapFactory;
      intermediary field_46167 Lnet/minecraft/class_3853;field_46167:Lnet/minecraft/class_3853$class_1654;
      official s Lcpm;s:Lcpm$l;
    • SELL_SAVANNA_VILLAGE_MAP_TRADE

      private static final TradeOffers.SellMapFactory SELL_SAVANNA_VILLAGE_MAP_TRADE
      Mappings:
      Namespace Name Mixin selector
      named SELL_SAVANNA_VILLAGE_MAP_TRADE Lnet/minecraft/village/TradeOffers;SELL_SAVANNA_VILLAGE_MAP_TRADE:Lnet/minecraft/village/TradeOffers$SellMapFactory;
      intermediary field_46168 Lnet/minecraft/class_3853;field_46168:Lnet/minecraft/class_3853$class_1654;
      official t Lcpm;t:Lcpm$l;
    • SELL_PLAINS_VILLAGE_MAP_TRADE

      private static final TradeOffers.SellMapFactory SELL_PLAINS_VILLAGE_MAP_TRADE
      Mappings:
      Namespace Name Mixin selector
      named SELL_PLAINS_VILLAGE_MAP_TRADE Lnet/minecraft/village/TradeOffers;SELL_PLAINS_VILLAGE_MAP_TRADE:Lnet/minecraft/village/TradeOffers$SellMapFactory;
      intermediary field_46169 Lnet/minecraft/class_3853;field_46169:Lnet/minecraft/class_3853$class_1654;
      official u Lcpm;u:Lcpm$l;
    • SELL_TAIGA_VILLAGE_MAP_TRADE

      private static final TradeOffers.SellMapFactory SELL_TAIGA_VILLAGE_MAP_TRADE
      Mappings:
      Namespace Name Mixin selector
      named SELL_TAIGA_VILLAGE_MAP_TRADE Lnet/minecraft/village/TradeOffers;SELL_TAIGA_VILLAGE_MAP_TRADE:Lnet/minecraft/village/TradeOffers$SellMapFactory;
      intermediary field_46170 Lnet/minecraft/class_3853;field_46170:Lnet/minecraft/class_3853$class_1654;
      official v Lcpm;v:Lcpm$l;
    • SELL_SNOWY_VILLAGE_MAP_TRADE

      private static final TradeOffers.SellMapFactory SELL_SNOWY_VILLAGE_MAP_TRADE
      Mappings:
      Namespace Name Mixin selector
      named SELL_SNOWY_VILLAGE_MAP_TRADE Lnet/minecraft/village/TradeOffers;SELL_SNOWY_VILLAGE_MAP_TRADE:Lnet/minecraft/village/TradeOffers$SellMapFactory;
      intermediary field_46171 Lnet/minecraft/class_3853;field_46171:Lnet/minecraft/class_3853$class_1654;
      official w Lcpm;w:Lcpm$l;
    • SELL_JUNGLE_TEMPLE_MAP_TRADE

      private static final TradeOffers.SellMapFactory SELL_JUNGLE_TEMPLE_MAP_TRADE
      Mappings:
      Namespace Name Mixin selector
      named SELL_JUNGLE_TEMPLE_MAP_TRADE Lnet/minecraft/village/TradeOffers;SELL_JUNGLE_TEMPLE_MAP_TRADE:Lnet/minecraft/village/TradeOffers$SellMapFactory;
      intermediary field_46172 Lnet/minecraft/class_3853;field_46172:Lnet/minecraft/class_3853$class_1654;
      official x Lcpm;x:Lcpm$l;
    • SELL_SWAMP_HUT_MAP_TRADE

      private static final TradeOffers.SellMapFactory SELL_SWAMP_HUT_MAP_TRADE
      Mappings:
      Namespace Name Mixin selector
      named SELL_SWAMP_HUT_MAP_TRADE Lnet/minecraft/village/TradeOffers;SELL_SWAMP_HUT_MAP_TRADE:Lnet/minecraft/village/TradeOffers$SellMapFactory;
      intermediary field_46173 Lnet/minecraft/class_3853;field_46173:Lnet/minecraft/class_3853$class_1654;
      official y Lcpm;y:Lcpm$l;
    • REBALANCED_PROFESSION_TO_LEVELED_TRADE

      public static final Map<VillagerProfession,Int2ObjectMap<TradeOffers.Factory[]>> REBALANCED_PROFESSION_TO_LEVELED_TRADE
      Mappings:
      Namespace Name Mixin selector
      named REBALANCED_PROFESSION_TO_LEVELED_TRADE Lnet/minecraft/village/TradeOffers;REBALANCED_PROFESSION_TO_LEVELED_TRADE:Ljava/util/Map;
      intermediary field_45128 Lnet/minecraft/class_3853;field_45128:Ljava/util/Map;
      official c Lcpm;c:Ljava/util/Map;
    • REBALANCED_WANDERING_TRADER_TRADES

      public static final List<Pair<TradeOffers.Factory[],Integer>> REBALANCED_WANDERING_TRADER_TRADES
      Mappings:
      Namespace Name Mixin selector
      named REBALANCED_WANDERING_TRADER_TRADES Lnet/minecraft/village/TradeOffers;REBALANCED_WANDERING_TRADER_TRADES:Ljava/util/List;
      intermediary field_45129 Lnet/minecraft/class_3853;field_45129:Ljava/util/List;
      official d Lcpm;d:Ljava/util/List;
  • Constructor Details

    • TradeOffers

      public TradeOffers()
  • Method Details

    • createLibrarianTradeFactory

      private static TradeOffers.Factory createLibrarianTradeFactory(int experience)
      Mappings:
      Namespace Name Mixin selector
      named createLibrarianTradeFactory Lnet/minecraft/village/TradeOffers;createLibrarianTradeFactory(I)Lnet/minecraft/village/TradeOffers$Factory;
      intermediary method_52552 Lnet/minecraft/class_3853;method_52552(I)Lnet/minecraft/class_3853$class_1652;
      official a Lcpm;a(I)Lcpm$g;
    • createMasterLibrarianTradeFactory

      private static TradeOffers.Factory createMasterLibrarianTradeFactory()
      Mappings:
      Namespace Name Mixin selector
      named createMasterLibrarianTradeFactory Lnet/minecraft/village/TradeOffers;createMasterLibrarianTradeFactory()Lnet/minecraft/village/TradeOffers$Factory;
      intermediary method_52551 Lnet/minecraft/class_3853;method_52551()Lnet/minecraft/class_3853$class_1652;
      official a Lcpm;a()Lcpm$g;
    • copyToFastUtilMap

      private static Int2ObjectMap<TradeOffers.Factory[]> copyToFastUtilMap(ImmutableMap<Integer,TradeOffers.Factory[]> map)
      Mappings:
      Namespace Name Mixin selector
      named copyToFastUtilMap Lnet/minecraft/village/TradeOffers;copyToFastUtilMap(Lcom/google/common/collect/ImmutableMap;)Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;
      intermediary method_16928 Lnet/minecraft/class_3853;method_16928(Lcom/google/common/collect/ImmutableMap;)Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;
      official a Lcpm;a(Lcom/google/common/collect/ImmutableMap;)Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;
    • createPotion

      private static TradedItem createPotion(RegistryEntry<Potion> potion)
      Mappings:
      Namespace Name Mixin selector
      named createPotion Lnet/minecraft/village/TradeOffers;createPotion(Lnet/minecraft/registry/entry/RegistryEntry;)Lnet/minecraft/village/TradedItem;
      intermediary method_57311 Lnet/minecraft/class_3853;method_57311(Lnet/minecraft/class_6880;)Lnet/minecraft/class_9306;
      official a Lcpm;a(Ljq;)Ldgc;
    • createPotionStack

      private static ItemStack createPotionStack(RegistryEntry<Potion> potion)
      Mappings:
      Namespace Name Mixin selector
      named createPotionStack Lnet/minecraft/village/TradeOffers;createPotionStack(Lnet/minecraft/registry/entry/RegistryEntry;)Lnet/minecraft/item/ItemStack;
      intermediary method_52553 Lnet/minecraft/class_3853;method_52553(Lnet/minecraft/class_6880;)Lnet/minecraft/class_1799;
      official b Lcpm;b(Ljq;)Lcxo;