Class TradeOffers.SellItemFactory

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

private static class TradeOffers.SellItemFactory extends Object implements TradeOffers.Factory
Mappings:
Namespace Name
official cez$i
intermediary net/minecraft/class_3853$class_4165
named net/minecraft/village/TradeOffers$SellItemFactory
  • Field Details

    • sell

      private final ItemStack sell
      Mappings:
      Namespace Name Mixin selector
      official a Lcez$i;a:Lcmy;
      intermediary field_18571 Lnet/minecraft/class_3853$class_4165;field_18571:Lnet/minecraft/class_1799;
      named sell Lnet/minecraft/village/TradeOffers$SellItemFactory;sell:Lnet/minecraft/item/ItemStack;
    • price

      private final int price
      Mappings:
      Namespace Name Mixin selector
      official b Lcez$i;b:I
      intermediary field_18572 Lnet/minecraft/class_3853$class_4165;field_18572:I
      named price Lnet/minecraft/village/TradeOffers$SellItemFactory;price:I
    • maxUses

      private final int maxUses
      Mappings:
      Namespace Name Mixin selector
      official c Lcez$i;c:I
      intermediary field_18574 Lnet/minecraft/class_3853$class_4165;field_18574:I
      named maxUses Lnet/minecraft/village/TradeOffers$SellItemFactory;maxUses:I
    • experience

      private final int experience
      Mappings:
      Namespace Name Mixin selector
      official d Lcez$i;d:I
      intermediary field_18575 Lnet/minecraft/class_3853$class_4165;field_18575:I
      named experience Lnet/minecraft/village/TradeOffers$SellItemFactory;experience:I
    • multiplier

      private final float multiplier
      Mappings:
      Namespace Name Mixin selector
      official e Lcez$i;e:F
      intermediary field_18576 Lnet/minecraft/class_3853$class_4165;field_18576:F
      named multiplier Lnet/minecraft/village/TradeOffers$SellItemFactory;multiplier:F
  • Constructor Details

    • SellItemFactory

      public SellItemFactory(Block block, int price, int count, int maxUses, int experience)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcez$i;<init>(Lcwq;IIII)V
      intermediary <init> Lnet/minecraft/class_3853$class_4165;<init>(Lnet/minecraft/class_2248;IIII)V
      named <init> Lnet/minecraft/village/TradeOffers$SellItemFactory;<init>(Lnet/minecraft/block/Block;IIII)V
    • SellItemFactory

      public SellItemFactory(Item item, int price, int count, int experience)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcez$i;<init>(Lcmt;III)V
      intermediary <init> Lnet/minecraft/class_3853$class_4165;<init>(Lnet/minecraft/class_1792;III)V
      named <init> Lnet/minecraft/village/TradeOffers$SellItemFactory;<init>(Lnet/minecraft/item/Item;III)V
    • SellItemFactory

      public SellItemFactory(Item item, int price, int count, int maxUses, int experience)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcez$i;<init>(Lcmt;IIII)V
      intermediary <init> Lnet/minecraft/class_3853$class_4165;<init>(Lnet/minecraft/class_1792;IIII)V
      named <init> Lnet/minecraft/village/TradeOffers$SellItemFactory;<init>(Lnet/minecraft/item/Item;IIII)V
    • SellItemFactory

      public SellItemFactory(ItemStack stack, int price, int count, int maxUses, int experience)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcez$i;<init>(Lcmy;IIII)V
      intermediary <init> Lnet/minecraft/class_3853$class_4165;<init>(Lnet/minecraft/class_1799;IIII)V
      named <init> Lnet/minecraft/village/TradeOffers$SellItemFactory;<init>(Lnet/minecraft/item/ItemStack;IIII)V
    • SellItemFactory

      public SellItemFactory(Item item, int price, int count, int maxUses, int experience, float multiplier)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcez$i;<init>(Lcmt;IIIIF)V
      intermediary <init> Lnet/minecraft/class_3853$class_4165;<init>(Lnet/minecraft/class_1792;IIIIF)V
      named <init> Lnet/minecraft/village/TradeOffers$SellItemFactory;<init>(Lnet/minecraft/item/Item;IIIIF)V
    • SellItemFactory

      public SellItemFactory(ItemStack sell, int price, int count, int maxUses, int experience, float multiplier)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcez$i;<init>(Lcmy;IIIIF)V
      intermediary <init> Lnet/minecraft/class_3853$class_4165;<init>(Lnet/minecraft/class_1799;IIIIF)V
      named <init> Lnet/minecraft/village/TradeOffers$SellItemFactory;<init>(Lnet/minecraft/item/ItemStack;IIIIF)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 Lcez$g;a(Lblv;Lauv;)Lcsn;
      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;