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 bju$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 Lbju$b;a:Lbql;
      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 Lbju$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 Lbju$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 Lbju$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 Lbju$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> Lbju$b;<init>(Lbwo;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 Lbju$f;a(Latf;Ljava/util/Random;)Lbvm;
      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;