Class TradeOffers.BuyItemFactory

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

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

    • stack

      private final TradedItem stack
      Mappings:
      Namespace Name Mixin selector
      named stack Lnet/minecraft/village/TradeOffers$BuyItemFactory;stack:Lnet/minecraft/village/TradedItem;
      intermediary field_45130 Lnet/minecraft/class_3853$class_4161;field_45130:Lnet/minecraft/class_9306;
      official a Lcmc$b;a:Ldbc;
    • maxUses

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

      private final int experience
      Mappings:
      Namespace Name Mixin selector
      named experience Lnet/minecraft/village/TradeOffers$BuyItemFactory;experience:I
      intermediary field_18551 Lnet/minecraft/class_3853$class_4161;field_18551:I
      official c Lcmc$b;c:I
    • price

      private final int price
      Mappings:
      Namespace Name Mixin selector
      named price Lnet/minecraft/village/TradeOffers$BuyItemFactory;price:I
      intermediary field_18549 Lnet/minecraft/class_3853$class_4161;field_18549:I
      official d Lcmc$b;d:I
    • multiplier

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

    • BuyItemFactory

      public BuyItemFactory(ItemConvertible item, int count, int maxUses, int experience)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/village/TradeOffers$BuyItemFactory;<init>(Lnet/minecraft/item/ItemConvertible;III)V
      intermediary <init> Lnet/minecraft/class_3853$class_4161;<init>(Lnet/minecraft/class_1935;III)V
      official <init> Lcmc$b;<init>(Ldcf;III)V
    • BuyItemFactory

      public BuyItemFactory(ItemConvertible item, int count, int maxUses, int experience, int price)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/village/TradeOffers$BuyItemFactory;<init>(Lnet/minecraft/item/ItemConvertible;IIII)V
      intermediary <init> Lnet/minecraft/class_3853$class_4161;<init>(Lnet/minecraft/class_1935;IIII)V
      official <init> Lcmc$b;<init>(Ldcf;IIII)V
    • BuyItemFactory

      public BuyItemFactory(TradedItem stack, int maxUses, int experience, int price)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/village/TradeOffers$BuyItemFactory;<init>(Lnet/minecraft/village/TradedItem;III)V
      intermediary <init> Lnet/minecraft/class_3853$class_4161;<init>(Lnet/minecraft/class_9306;III)V
      official <init> Lcmc$b;<init>(Ldbc;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
      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 Lcmc$g;a(Lbsh;Layo;)Ldbe;