Class TradeOutputSlot

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

public class TradeOutputSlot extends Slot
Mappings:
Namespace Name
named net/minecraft/screen/slot/TradeOutputSlot
intermediary net/minecraft/class_1727
official cun
  • Field Details

    • merchantInventory

      private final MerchantInventory merchantInventory
      Mappings:
      Namespace Name Mixin selector
      named merchantInventory Lnet/minecraft/screen/slot/TradeOutputSlot;merchantInventory:Lnet/minecraft/village/MerchantInventory;
      intermediary field_7860 Lnet/minecraft/class_1727;field_7860:Lnet/minecraft/class_1725;
      official a Lcun;a:Lcul;
    • player

      private final PlayerEntity player
      Mappings:
      Namespace Name Mixin selector
      named player Lnet/minecraft/screen/slot/TradeOutputSlot;player:Lnet/minecraft/entity/player/PlayerEntity;
      intermediary field_7857 Lnet/minecraft/class_1727;field_7857:Lnet/minecraft/class_1657;
      official b Lcun;b:Lcpw;
    • amount

      private int amount
      Mappings:
      Namespace Name Mixin selector
      named amount Lnet/minecraft/screen/slot/TradeOutputSlot;amount:I
      intermediary field_7859 Lnet/minecraft/class_1727;field_7859:I
      official g Lcun;g:I
    • merchant

      private final Merchant merchant
      Mappings:
      Namespace Name Mixin selector
      named merchant Lnet/minecraft/screen/slot/TradeOutputSlot;merchant:Lnet/minecraft/village/Merchant;
      intermediary field_7858 Lnet/minecraft/class_1727;field_7858:Lnet/minecraft/class_1915;
      official h Lcun;h:Ldgd;
  • Constructor Details

    • TradeOutputSlot

      public TradeOutputSlot(PlayerEntity player, Merchant merchant, MerchantInventory merchantInventory, int index, int x, int y)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/screen/slot/TradeOutputSlot;<init>(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/village/Merchant;Lnet/minecraft/village/MerchantInventory;III)V
      intermediary <init> Lnet/minecraft/class_1727;<init>(Lnet/minecraft/class_1657;Lnet/minecraft/class_1915;Lnet/minecraft/class_1725;III)V
      official <init> Lcun;<init>(Lcpw;Ldgd;Lcul;III)V
  • Method Details

    • canInsert

      public boolean canInsert(ItemStack stack)
      Overrides:
      canInsert in class Slot
      Mappings:
      Namespace Name Mixin selector
      named canInsert Lnet/minecraft/screen/slot/Slot;canInsert(Lnet/minecraft/item/ItemStack;)Z
      intermediary method_7680 Lnet/minecraft/class_1735;method_7680(Lnet/minecraft/class_1799;)Z
      official a Lcuy;a(Lcxo;)Z
    • takeStack

      public ItemStack takeStack(int amount)
      Overrides:
      takeStack in class Slot
      Mappings:
      Namespace Name Mixin selector
      named takeStack Lnet/minecraft/screen/slot/Slot;takeStack(I)Lnet/minecraft/item/ItemStack;
      intermediary method_7671 Lnet/minecraft/class_1735;method_7671(I)Lnet/minecraft/class_1799;
      official a Lcuy;a(I)Lcxo;
    • onCrafted

      protected void onCrafted(ItemStack stack, int amount)
      Overrides:
      onCrafted in class Slot
      Mappings:
      Namespace Name Mixin selector
      named onCrafted Lnet/minecraft/screen/slot/Slot;onCrafted(Lnet/minecraft/item/ItemStack;I)V
      intermediary method_7678 Lnet/minecraft/class_1735;method_7678(Lnet/minecraft/class_1799;I)V
      official a Lcuy;a(Lcxo;I)V
    • onCrafted

      protected void onCrafted(ItemStack stack)
      Overrides:
      onCrafted in class Slot
      Mappings:
      Namespace Name Mixin selector
      named onCrafted Lnet/minecraft/screen/slot/Slot;onCrafted(Lnet/minecraft/item/ItemStack;)V
      intermediary method_7669 Lnet/minecraft/class_1735;method_7669(Lnet/minecraft/class_1799;)V
      official b_ Lcuy;b_(Lcxo;)V
    • onTakeItem

      public void onTakeItem(PlayerEntity player, ItemStack stack)
      Overrides:
      onTakeItem in class Slot
      Mappings:
      Namespace Name Mixin selector
      named onTakeItem Lnet/minecraft/screen/slot/Slot;onTakeItem(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/item/ItemStack;)V
      intermediary method_7667 Lnet/minecraft/class_1735;method_7667(Lnet/minecraft/class_1657;Lnet/minecraft/class_1799;)V
      official a Lcuy;a(Lcpw;Lcxo;)V