Class TradeOffers.SellDyedArmorFactory

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

private static class TradeOffers.SellDyedArmorFactory extends Object implements TradeOffers.Factory
Mappings:
Namespace Name
named net/minecraft/village/TradeOffers$SellDyedArmorFactory
intermediary net/minecraft/class_3853$class_4160
official cmq$a
  • Field Details

    • sell

      private final Item sell
      Mappings:
      Namespace Name Mixin selector
      named sell Lnet/minecraft/village/TradeOffers$SellDyedArmorFactory;sell:Lnet/minecraft/item/Item;
      intermediary field_18544 Lnet/minecraft/class_3853$class_4160;field_18544:Lnet/minecraft/class_1792;
      official a Lcmq$a;a:Lcum;
    • price

      private final int price
      Mappings:
      Namespace Name Mixin selector
      named price Lnet/minecraft/village/TradeOffers$SellDyedArmorFactory;price:I
      intermediary field_18545 Lnet/minecraft/class_3853$class_4160;field_18545:I
      official b Lcmq$a;b:I
    • maxUses

      private final int maxUses
      Mappings:
      Namespace Name Mixin selector
      named maxUses Lnet/minecraft/village/TradeOffers$SellDyedArmorFactory;maxUses:I
      intermediary field_18546 Lnet/minecraft/class_3853$class_4160;field_18546:I
      official c Lcmq$a;c:I
    • experience

      private final int experience
      Mappings:
      Namespace Name Mixin selector
      named experience Lnet/minecraft/village/TradeOffers$SellDyedArmorFactory;experience:I
      intermediary field_18547 Lnet/minecraft/class_3853$class_4160;field_18547:I
      official d Lcmq$a;d:I
  • Constructor Details

    • SellDyedArmorFactory

      public SellDyedArmorFactory(Item item, int price)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/village/TradeOffers$SellDyedArmorFactory;<init>(Lnet/minecraft/item/Item;I)V
      intermediary <init> Lnet/minecraft/class_3853$class_4160;<init>(Lnet/minecraft/class_1792;I)V
      official <init> Lcmq$a;<init>(Lcum;I)V
    • SellDyedArmorFactory

      public SellDyedArmorFactory(Item item, int price, int maxUses, int experience)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/village/TradeOffers$SellDyedArmorFactory;<init>(Lnet/minecraft/item/Item;III)V
      intermediary <init> Lnet/minecraft/class_3853$class_4160;<init>(Lnet/minecraft/class_1792;III)V
      official <init> Lcmq$a;<init>(Lcum;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 Lcmq$g;a(Lbsw;Lazh;)Lday;
    • getDye

      private static DyeItem getDye(Random random)
      Mappings:
      Namespace Name Mixin selector
      named getDye Lnet/minecraft/village/TradeOffers$SellDyedArmorFactory;getDye(Lnet/minecraft/util/math/random/Random;)Lnet/minecraft/item/DyeItem;
      intermediary method_19200 Lnet/minecraft/class_3853$class_4160;method_19200(Lnet/minecraft/class_5819;)Lnet/minecraft/class_1769;
      official a Lcmq$a;a(Lazh;)Lctl;