Class TradeOutputSlot

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

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

    • traderInventory

      private final TraderInventory traderInventory
      Mappings:
      Namespace Name Mixin selector
      official a Lyc;a:Lya;
      intermediary field_8516 Lnet/minecraft/class_2006;field_8516:Lnet/minecraft/class_2004;
      named traderInventory Lnet/minecraft/inventory/slot/TradeOutputSlot;traderInventory:Lnet/minecraft/village/TraderInventory;
    • player

      private PlayerEntity player
      Mappings:
      Namespace Name Mixin selector
      official b Lyc;b:Lwn;
      intermediary field_8517 Lnet/minecraft/class_2006;field_8517:Lnet/minecraft/class_1963;
      named player Lnet/minecraft/inventory/slot/TradeOutputSlot;player:Lnet/minecraft/entity/player/PlayerEntity;
    • amount

      private int amount
      Mappings:
      Namespace Name Mixin selector
      official c Lyc;c:I
      intermediary field_8518 Lnet/minecraft/class_2006;field_8518:I
      named amount Lnet/minecraft/inventory/slot/TradeOutputSlot;amount:I
    • trader

      private final Trader trader
      Mappings:
      Namespace Name Mixin selector
      official h Lyc;h:Lacy;
      intermediary field_8519 Lnet/minecraft/class_2006;field_8519:Lnet/minecraft/class_83;
      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> Lyc;<init>(Lwn;Lacy;Lya;III)V
      intermediary <init> Lnet/minecraft/class_2006;<init>(Lnet/minecraft/class_1963;Lnet/minecraft/class_83;Lnet/minecraft/class_2004;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 Lyg;a(Lzx;)Z
      intermediary method_8158 Lnet/minecraft/class_2010;method_8158(Lnet/minecraft/class_2056;)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 Lyg;a(I)Lzx;
      intermediary method_8154 Lnet/minecraft/class_2010;method_8154(I)Lnet/minecraft/class_2056;
      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 Lyg;a(Lzx;I)V
      intermediary method_8159 Lnet/minecraft/class_2010;method_8159(Lnet/minecraft/class_2056;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 Lyg;c(Lzx;)V
      intermediary method_8164 Lnet/minecraft/class_2010;method_8164(Lnet/minecraft/class_2056;)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 Lyg;a(Lwn;Lzx;)V
      intermediary method_8157 Lnet/minecraft/class_2010;method_8157(Lnet/minecraft/class_1963;Lnet/minecraft/class_2056;)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 Lyc;a(Lacz;Lzx;Lzx;)Z
      intermediary method_8149 Lnet/minecraft/class_2006;method_8149(Lnet/minecraft/class_84;Lnet/minecraft/class_2056;Lnet/minecraft/class_2056;)Z
      named depleteBuyItems Lnet/minecraft/inventory/slot/TradeOutputSlot;depleteBuyItems(Lnet/minecraft/village/TradeOffer;Lnet/minecraft/item/ItemStack;Lnet/minecraft/item/ItemStack;)Z