Class TradeOffers.SellEnchantedToolFactory

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

private static class TradeOffers.SellEnchantedToolFactory extends Object implements TradeOffers.Factory
Mappings:
Namespace Name
named net/minecraft/village/TradeOffers$SellEnchantedToolFactory
intermediary net/minecraft/class_3853$class_4163
official cmm$e
  • Field Details

    • tool

      private final ItemStack tool
      Mappings:
      Namespace Name Mixin selector
      named tool Lnet/minecraft/village/TradeOffers$SellEnchantedToolFactory;tool:Lnet/minecraft/item/ItemStack;
      intermediary field_18558 Lnet/minecraft/class_3853$class_4163;field_18558:Lnet/minecraft/class_1799;
      official a Lcmm$e;a:Lcuo;
    • basePrice

      private final int basePrice
      Mappings:
      Namespace Name Mixin selector
      named basePrice Lnet/minecraft/village/TradeOffers$SellEnchantedToolFactory;basePrice:I
      intermediary field_18559 Lnet/minecraft/class_3853$class_4163;field_18559:I
      official b Lcmm$e;b:I
    • maxUses

      private final int maxUses
      Mappings:
      Namespace Name Mixin selector
      named maxUses Lnet/minecraft/village/TradeOffers$SellEnchantedToolFactory;maxUses:I
      intermediary field_18560 Lnet/minecraft/class_3853$class_4163;field_18560:I
      official c Lcmm$e;c:I
    • experience

      private final int experience
      Mappings:
      Namespace Name Mixin selector
      named experience Lnet/minecraft/village/TradeOffers$SellEnchantedToolFactory;experience:I
      intermediary field_18561 Lnet/minecraft/class_3853$class_4163;field_18561:I
      official d Lcmm$e;d:I
    • multiplier

      private final float multiplier
      Mappings:
      Namespace Name Mixin selector
      named multiplier Lnet/minecraft/village/TradeOffers$SellEnchantedToolFactory;multiplier:F
      intermediary field_18562 Lnet/minecraft/class_3853$class_4163;field_18562:F
      official e Lcmm$e;e:F
  • Constructor Details

    • SellEnchantedToolFactory

      public SellEnchantedToolFactory(Item item, int basePrice, int maxUses, int experience)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/village/TradeOffers$SellEnchantedToolFactory;<init>(Lnet/minecraft/item/Item;III)V
      intermediary <init> Lnet/minecraft/class_3853$class_4163;<init>(Lnet/minecraft/class_1792;III)V
      official <init> Lcmm$e;<init>(Lcuj;III)V
    • SellEnchantedToolFactory

      public SellEnchantedToolFactory(Item item, int basePrice, int maxUses, int experience, float multiplier)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/village/TradeOffers$SellEnchantedToolFactory;<init>(Lnet/minecraft/item/Item;IIIF)V
      intermediary <init> Lnet/minecraft/class_3853$class_4163;<init>(Lnet/minecraft/class_1792;IIIF)V
      official <init> Lcmm$e;<init>(Lcuj;IIIF)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 Lcmm$g;a(Lbsq;Layv;)Ldbs;