Class TradeOffers.BuyForOneEmeraldFactory

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

private static class TradeOffers.BuyForOneEmeraldFactory extends Object implements TradeOffers.Factory
Mappings:
Namespace Name
official bsw$b
intermediary net/minecraft/class_3853$class_4161
named net/minecraft/village/TradeOffers$BuyForOneEmeraldFactory
  • Field Details

    • buy

      private final Item buy
      Mappings:
      Namespace Name Mixin selector
      official a Lbsw$b;a:Lbzw;
      intermediary field_18548 Lnet/minecraft/class_3853$class_4161;field_18548:Lnet/minecraft/class_1792;
      named buy Lnet/minecraft/village/TradeOffers$BuyForOneEmeraldFactory;buy:Lnet/minecraft/item/Item;
    • price

      private final int price
      Mappings:
      Namespace Name Mixin selector
      official b Lbsw$b;b:I
      intermediary field_18549 Lnet/minecraft/class_3853$class_4161;field_18549:I
      named price Lnet/minecraft/village/TradeOffers$BuyForOneEmeraldFactory;price:I
    • maxUses

      private final int maxUses
      Mappings:
      Namespace Name Mixin selector
      official c Lbsw$b;c:I
      intermediary field_18550 Lnet/minecraft/class_3853$class_4161;field_18550:I
      named maxUses Lnet/minecraft/village/TradeOffers$BuyForOneEmeraldFactory;maxUses:I
    • experience

      private final int experience
      Mappings:
      Namespace Name Mixin selector
      official d Lbsw$b;d:I
      intermediary field_18551 Lnet/minecraft/class_3853$class_4161;field_18551:I
      named experience Lnet/minecraft/village/TradeOffers$BuyForOneEmeraldFactory;experience:I
    • multiplier

      private final float multiplier
      Mappings:
      Namespace Name Mixin selector
      official e Lbsw$b;e:F
      intermediary field_18552 Lnet/minecraft/class_3853$class_4161;field_18552:F
      named multiplier Lnet/minecraft/village/TradeOffers$BuyForOneEmeraldFactory;multiplier:F
  • Constructor Details

    • BuyForOneEmeraldFactory

      public BuyForOneEmeraldFactory(ItemConvertible item, int price, int maxUses, int experience)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbsw$b;<init>(Lcfz;III)V
      intermediary <init> Lnet/minecraft/class_3853$class_4161;<init>(Lnet/minecraft/class_1935;III)V
      named <init> Lnet/minecraft/village/TradeOffers$BuyForOneEmeraldFactory;<init>(Lnet/minecraft/item/ItemConvertible;III)V
  • Method Details

    • create

      public 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 Lbsw$f;a(Lbaq;Lalu;)Lcey;
      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;