Class TradeOutputSlot

java.lang.Object
net.minecraft.inventory.slot.Slot
net.minecraft.inventory.slot.TradeOutputSlot

public class TradeOutputSlot extends Slot
Mappings:
Namespace Name
official ajg
intermediary net/minecraft/class_1022
named net/minecraft/inventory/slot/TradeOutputSlot
  • Field Details

    • traderInventory

      private final TraderInventory traderInventory
      Mappings:
      Namespace Name Mixin selector
      official a Lajg;a:Laje;
      intermediary field_4141 Lnet/minecraft/class_1022;field_4141:Lnet/minecraft/class_1020;
      named traderInventory Lnet/minecraft/inventory/slot/TradeOutputSlot;traderInventory:Lnet/minecraft/village/TraderInventory;
    • player

      private PlayerEntity player
      Mappings:
      Namespace Name Mixin selector
      official b Lajg;b:Lahd;
      intermediary field_4142 Lnet/minecraft/class_1022;field_4142:Lnet/minecraft/class_988;
      named player Lnet/minecraft/inventory/slot/TradeOutputSlot;player:Lnet/minecraft/entity/player/PlayerEntity;
    • amount

      private int amount
      Mappings:
      Namespace Name Mixin selector
      official c Lajg;c:I
      intermediary field_4143 Lnet/minecraft/class_1022;field_4143:I
      named amount Lnet/minecraft/inventory/slot/TradeOutputSlot;amount:I
    • trader

      private final Trader trader
      Mappings:
      Namespace Name Mixin selector
      official h Lajg;h:Laqb;
      intermediary field_4144 Lnet/minecraft/class_1022;field_4144:Lnet/minecraft/class_1143;
      named trader Lnet/minecraft/inventory/slot/TradeOutputSlot;trader:Lnet/minecraft/entity/data/Trader;
  • Constructor Details

    • TradeOutputSlot

      public TradeOutputSlot(PlayerEntity player, Trader trader, TraderInventory traderInventory, int index, int x, int y)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lajg;<init>(Lahd;Laqb;Laje;III)V
      intermediary <init> Lnet/minecraft/class_1022;<init>(Lnet/minecraft/class_988;Lnet/minecraft/class_1143;Lnet/minecraft/class_1020;III)V
      named <init> Lnet/minecraft/inventory/slot/TradeOutputSlot;<init>(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/entity/data/Trader;Lnet/minecraft/village/TraderInventory;III)V
  • Method Details

    • canInsert

      public boolean canInsert(ItemStack stack)
      Overrides:
      canInsert in class Slot
      Mappings:
      Namespace Name Mixin selector
      official a Lajk;a(Lamj;)Z
      intermediary method_3294 Lnet/minecraft/class_1026;method_3294(Lnet/minecraft/class_1071;)Z
      named canInsert Lnet/minecraft/inventory/slot/Slot;canInsert(Lnet/minecraft/item/ItemStack;)Z
    • takeStack

      public ItemStack takeStack(int amount)
      Overrides:
      takeStack in class Slot
      Mappings:
      Namespace Name Mixin selector
      official a Lajk;a(I)Lamj;
      intermediary method_3292 Lnet/minecraft/class_1026;method_3292(I)Lnet/minecraft/class_1071;
      named takeStack Lnet/minecraft/inventory/slot/Slot;takeStack(I)Lnet/minecraft/item/ItemStack;
    • onCrafted

      protected void onCrafted(ItemStack stack, int amount)
      Overrides:
      onCrafted in class Slot
      Mappings:
      Namespace Name Mixin selector
      official a Lajk;a(Lamj;I)V
      intermediary method_3295 Lnet/minecraft/class_1026;method_3295(Lnet/minecraft/class_1071;I)V
      named onCrafted Lnet/minecraft/inventory/slot/Slot;onCrafted(Lnet/minecraft/item/ItemStack;I)V
    • onCrafted

      protected void onCrafted(ItemStack stack)
      Overrides:
      onCrafted in class Slot
      Mappings:
      Namespace Name Mixin selector
      official c Lajk;c(Lamj;)V
      intermediary method_3300 Lnet/minecraft/class_1026;method_3300(Lnet/minecraft/class_1071;)V
      named onCrafted Lnet/minecraft/inventory/slot/Slot;onCrafted(Lnet/minecraft/item/ItemStack;)V
    • onTakeItem

      public void onTakeItem(PlayerEntity player, ItemStack stack)
      Overrides:
      onTakeItem in class Slot
      Mappings:
      Namespace Name Mixin selector
      official a Lajk;a(Lahd;Lamj;)V
      intermediary method_3298 Lnet/minecraft/class_1026;method_3298(Lnet/minecraft/class_988;Lnet/minecraft/class_1071;)V
      named onTakeItem Lnet/minecraft/inventory/slot/Slot;onTakeItem(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/item/ItemStack;)V
    • depleteBuyItems

      private boolean depleteBuyItems(TradeOffer offer, ItemStack first, ItemStack second)
      Mappings:
      Namespace Name Mixin selector
      official a Lajg;a(Laqc;Lamj;Lamj;)Z
      intermediary method_3287 Lnet/minecraft/class_1022;method_3287(Lnet/minecraft/class_1144;Lnet/minecraft/class_1071;Lnet/minecraft/class_1071;)Z
      named depleteBuyItems Lnet/minecraft/inventory/slot/TradeOutputSlot;depleteBuyItems(Lnet/minecraft/village/TradeOffer;Lnet/minecraft/item/ItemStack;Lnet/minecraft/item/ItemStack;)Z