Class TradeOffer

java.lang.Object
net.minecraft.village.TradeOffer

public class TradeOffer extends Object
Mappings:
Namespace Name
official axe
intermediary net/minecraft/class_1144
named net/minecraft/village/TradeOffer
  • Field Details

    • stack1

      private ItemStack stack1
      Mappings:
      Namespace Name Mixin selector
      official a Laxe;a:Late;
      intermediary field_4503 Lnet/minecraft/class_1144;field_4503:Lnet/minecraft/class_1071;
      named stack1 Lnet/minecraft/village/TradeOffer;stack1:Lnet/minecraft/item/ItemStack;
    • stack2

      private ItemStack stack2
      Mappings:
      Namespace Name Mixin selector
      official b Laxe;b:Late;
      intermediary field_4504 Lnet/minecraft/class_1144;field_4504:Lnet/minecraft/class_1071;
      named stack2 Lnet/minecraft/village/TradeOffer;stack2:Lnet/minecraft/item/ItemStack;
    • result

      private ItemStack result
      Mappings:
      Namespace Name Mixin selector
      official c Laxe;c:Late;
      intermediary field_4505 Lnet/minecraft/class_1144;field_4505:Lnet/minecraft/class_1071;
      named result Lnet/minecraft/village/TradeOffer;result:Lnet/minecraft/item/ItemStack;
    • uses

      private int uses
      Mappings:
      Namespace Name Mixin selector
      official d Laxe;d:I
      intermediary field_4506 Lnet/minecraft/class_1144;field_4506:I
      named uses Lnet/minecraft/village/TradeOffer;uses:I
    • maxUses

      private int maxUses
      Mappings:
      Namespace Name Mixin selector
      official e Laxe;e:I
      intermediary field_5459 Lnet/minecraft/class_1144;field_5459:I
      named maxUses Lnet/minecraft/village/TradeOffer;maxUses:I
    • rewardingPlayerExperience

      private boolean rewardingPlayerExperience
      Mappings:
      Namespace Name Mixin selector
      official f Laxe;f:Z
      intermediary field_9188 Lnet/minecraft/class_1144;field_9188:Z
      named rewardingPlayerExperience Lnet/minecraft/village/TradeOffer;rewardingPlayerExperience:Z
  • Constructor Details

    • TradeOffer

      public TradeOffer(NbtCompound nbt)
      Mappings:
      Namespace Name Mixin selector
      official <init> Laxe;<init>(Lgy;)V
      intermediary <init> Lnet/minecraft/class_1144;<init>(Lnet/minecraft/class_322;)V
      named <init> Lnet/minecraft/village/TradeOffer;<init>(Lnet/minecraft/nbt/NbtCompound;)V
    • TradeOffer

      public TradeOffer(ItemStack stack1, ItemStack stack2, ItemStack result)
      Mappings:
      Namespace Name Mixin selector
      official <init> Laxe;<init>(Late;Late;Late;)V
      intermediary <init> Lnet/minecraft/class_1144;<init>(Lnet/minecraft/class_1071;Lnet/minecraft/class_1071;Lnet/minecraft/class_1071;)V
      named <init> Lnet/minecraft/village/TradeOffer;<init>(Lnet/minecraft/item/ItemStack;Lnet/minecraft/item/ItemStack;Lnet/minecraft/item/ItemStack;)V
    • TradeOffer

      public TradeOffer(ItemStack stack1, ItemStack stack2, ItemStack result, int uses, int maxUses)
      Mappings:
      Namespace Name Mixin selector
      official <init> Laxe;<init>(Late;Late;Late;II)V
      intermediary <init> Lnet/minecraft/class_1144;<init>(Lnet/minecraft/class_1071;Lnet/minecraft/class_1071;Lnet/minecraft/class_1071;II)V
      named <init> Lnet/minecraft/village/TradeOffer;<init>(Lnet/minecraft/item/ItemStack;Lnet/minecraft/item/ItemStack;Lnet/minecraft/item/ItemStack;II)V
    • TradeOffer

      public TradeOffer(ItemStack stack1, ItemStack result)
      Mappings:
      Namespace Name Mixin selector
      official <init> Laxe;<init>(Late;Late;)V
      intermediary <init> Lnet/minecraft/class_1144;<init>(Lnet/minecraft/class_1071;Lnet/minecraft/class_1071;)V
      named <init> Lnet/minecraft/village/TradeOffer;<init>(Lnet/minecraft/item/ItemStack;Lnet/minecraft/item/ItemStack;)V
    • TradeOffer

      public TradeOffer(ItemStack stack1, Item result)
      Mappings:
      Namespace Name Mixin selector
      official <init> Laxe;<init>(Late;Lata;)V
      intermediary <init> Lnet/minecraft/class_1144;<init>(Lnet/minecraft/class_1071;Lnet/minecraft/class_1069;)V
      named <init> Lnet/minecraft/village/TradeOffer;<init>(Lnet/minecraft/item/ItemStack;Lnet/minecraft/item/Item;)V
  • Method Details

    • getFirstStack

      public ItemStack getFirstStack()
      Mappings:
      Namespace Name Mixin selector
      official a Laxe;a()Late;
      intermediary method_3547 Lnet/minecraft/class_1144;method_3547()Lnet/minecraft/class_1071;
      named getFirstStack Lnet/minecraft/village/TradeOffer;getFirstStack()Lnet/minecraft/item/ItemStack;
    • getSecondStack

      public ItemStack getSecondStack()
      Mappings:
      Namespace Name Mixin selector
      official b Laxe;b()Late;
      intermediary method_3550 Lnet/minecraft/class_1144;method_3550()Lnet/minecraft/class_1071;
      named getSecondStack Lnet/minecraft/village/TradeOffer;getSecondStack()Lnet/minecraft/item/ItemStack;
    • hasSecondStack

      public boolean hasSecondStack()
      Mappings:
      Namespace Name Mixin selector
      official c Laxe;c()Z
      intermediary method_3552 Lnet/minecraft/class_1144;method_3552()Z
      named hasSecondStack Lnet/minecraft/village/TradeOffer;hasSecondStack()Z
    • getResult

      public ItemStack getResult()
      Mappings:
      Namespace Name Mixin selector
      official d Laxe;d()Late;
      intermediary method_3553 Lnet/minecraft/class_1144;method_3553()Lnet/minecraft/class_1071;
      named getResult Lnet/minecraft/village/TradeOffer;getResult()Lnet/minecraft/item/ItemStack;
    • getUses

      public int getUses()
      Mappings:
      Namespace Name Mixin selector
      official e Laxe;e()I
      intermediary method_8451 Lnet/minecraft/class_1144;method_8451()I
      named getUses Lnet/minecraft/village/TradeOffer;getUses()I
    • getMaxUses

      public int getMaxUses()
      Mappings:
      Namespace Name Mixin selector
      official f Laxe;f()I
      intermediary method_8452 Lnet/minecraft/class_1144;method_8452()I
      named getMaxUses Lnet/minecraft/village/TradeOffer;getMaxUses()I
    • use

      public void use()
      Mappings:
      Namespace Name Mixin selector
      official g Laxe;g()V
      intermediary method_3555 Lnet/minecraft/class_1144;method_3555()V
      named use Lnet/minecraft/village/TradeOffer;use()V
    • increaseSpecialPrice

      public void increaseSpecialPrice(int uses)
      Mappings:
      Namespace Name Mixin selector
      official a Laxe;a(I)V
      intermediary method_4663 Lnet/minecraft/class_1144;method_4663(I)V
      named increaseSpecialPrice Lnet/minecraft/village/TradeOffer;increaseSpecialPrice(I)V
    • isDisabled

      public boolean isDisabled()
      Mappings:
      Namespace Name Mixin selector
      official h Laxe;h()Z
      intermediary method_4664 Lnet/minecraft/class_1144;method_4664()Z
      named isDisabled Lnet/minecraft/village/TradeOffer;isDisabled()Z
    • clearUses

      @Environment(CLIENT) public void clearUses()
      Mappings:
      Namespace Name Mixin selector
      official i Laxe;i()V
      intermediary method_4665 Lnet/minecraft/class_1144;method_4665()V
      named clearUses Lnet/minecraft/village/TradeOffer;clearUses()V
    • shouldRewardPlayerExperience

      public boolean shouldRewardPlayerExperience()
      Mappings:
      Namespace Name Mixin selector
      official j Laxe;j()Z
      intermediary method_8453 Lnet/minecraft/class_1144;method_8453()Z
      named shouldRewardPlayerExperience Lnet/minecraft/village/TradeOffer;shouldRewardPlayerExperience()Z
    • readNbt

      public void readNbt(NbtCompound nbt)
      Mappings:
      Namespace Name Mixin selector
      official a Laxe;a(Lgy;)V
      intermediary method_3548 Lnet/minecraft/class_1144;method_3548(Lnet/minecraft/class_322;)V
      named readNbt Lnet/minecraft/village/TradeOffer;readNbt(Lnet/minecraft/nbt/NbtCompound;)V
    • toNbt

      public NbtCompound toNbt()
      Mappings:
      Namespace Name Mixin selector
      official k Laxe;k()Lgy;
      intermediary method_3556 Lnet/minecraft/class_1144;method_3556()Lnet/minecraft/class_322;
      named toNbt Lnet/minecraft/village/TradeOffer;toNbt()Lnet/minecraft/nbt/NbtCompound;