Class TradeOffers.TypeAwareBuyForOneEmeraldFactory

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

private static class TradeOffers.TypeAwareBuyForOneEmeraldFactory extends Object implements TradeOffers.Factory
Mappings:
Namespace Name
official cez$c
intermediary net/minecraft/class_3853$class_4162
named net/minecraft/village/TradeOffers$TypeAwareBuyForOneEmeraldFactory
  • Field Details

    • map

      private final Map<VillagerType,Item> map
      Mappings:
      Namespace Name Mixin selector
      official a Lcez$c;a:Ljava/util/Map;
      intermediary field_18553 Lnet/minecraft/class_3853$class_4162;field_18553:Ljava/util/Map;
      named map Lnet/minecraft/village/TradeOffers$TypeAwareBuyForOneEmeraldFactory;map:Ljava/util/Map;
    • count

      private final int count
      Mappings:
      Namespace Name Mixin selector
      official b Lcez$c;b:I
      intermediary field_18554 Lnet/minecraft/class_3853$class_4162;field_18554:I
      named count Lnet/minecraft/village/TradeOffers$TypeAwareBuyForOneEmeraldFactory;count:I
    • maxUses

      private final int maxUses
      Mappings:
      Namespace Name Mixin selector
      official c Lcez$c;c:I
      intermediary field_18555 Lnet/minecraft/class_3853$class_4162;field_18555:I
      named maxUses Lnet/minecraft/village/TradeOffers$TypeAwareBuyForOneEmeraldFactory;maxUses:I
    • experience

      private final int experience
      Mappings:
      Namespace Name Mixin selector
      official d Lcez$c;d:I
      intermediary field_18556 Lnet/minecraft/class_3853$class_4162;field_18556:I
      named experience Lnet/minecraft/village/TradeOffers$TypeAwareBuyForOneEmeraldFactory;experience:I
  • Constructor Details

    • TypeAwareBuyForOneEmeraldFactory

      public TypeAwareBuyForOneEmeraldFactory(int count, int maxUses, int experience, Map<VillagerType,Item> map)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcez$c;<init>(IIILjava/util/Map;)V
      intermediary <init> Lnet/minecraft/class_3853$class_4162;<init>(IIILjava/util/Map;)V
      named <init> Lnet/minecraft/village/TradeOffers$TypeAwareBuyForOneEmeraldFactory;<init>(IIILjava/util/Map;)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 Lcez$g;a(Lblv;Lauv;)Lcsn;
      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;