Class TraderInventory

java.lang.Object
net.minecraft.village.TraderInventory
All Implemented Interfaces:
Inventory, Nameable

public class TraderInventory extends Object implements Inventory
Mappings:
Namespace Name
official add
intermediary net/minecraft/class_1020
named net/minecraft/village/TraderInventory
  • Field Details

    • trader

      private final Trader trader
      Mappings:
      Namespace Name Mixin selector
      official a Ladd;a:Lajd;
      intermediary field_4133 Lnet/minecraft/class_1020;field_4133:Lnet/minecraft/class_1143;
      named trader Lnet/minecraft/village/TraderInventory;trader:Lnet/minecraft/entity/data/Trader;
    • field_15104

      private final DefaultedList<ItemStack> field_15104
      Mappings:
      Namespace Name Mixin selector
      official b Ladd;b:Ldd;
      intermediary field_15104 Lnet/minecraft/class_1020;field_15104:Lnet/minecraft/class_3114;
      named field_15104 Lnet/minecraft/village/TraderInventory;field_15104:Lnet/minecraft/util/collection/DefaultedList;
    • player

      private final PlayerEntity player
      Mappings:
      Namespace Name Mixin selector
      official c Ladd;c:Laay;
      intermediary field_4135 Lnet/minecraft/class_1020;field_4135:Lnet/minecraft/class_988;
      named player Lnet/minecraft/village/TraderInventory;player:Lnet/minecraft/entity/player/PlayerEntity;
    • tradeOffer

      private TradeOffer tradeOffer
      Mappings:
      Namespace Name Mixin selector
      official d Ladd;d:Laje;
      intermediary field_4136 Lnet/minecraft/class_1020;field_4136:Lnet/minecraft/class_1144;
      named tradeOffer Lnet/minecraft/village/TraderInventory;tradeOffer:Lnet/minecraft/village/TradeOffer;
    • field_4137

      private int field_4137
      Mappings:
      Namespace Name Mixin selector
      official e Ladd;e:I
      intermediary field_4137 Lnet/minecraft/class_1020;field_4137:I
      named field_4137 Lnet/minecraft/village/TraderInventory;field_4137:I
  • Constructor Details

    • TraderInventory

      public TraderInventory(PlayerEntity player, Trader trader)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ladd;<init>(Laay;Lajd;)V
      intermediary <init> Lnet/minecraft/class_1020;<init>(Lnet/minecraft/class_988;Lnet/minecraft/class_1143;)V
      named <init> Lnet/minecraft/village/TraderInventory;<init>(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/entity/data/Trader;)V
  • Method Details

    • getInvSize

      public int getInvSize()
      Specified by:
      getInvSize in interface Inventory
      Mappings:
      Namespace Name Mixin selector
      official v_ Lrc;v_()I
      intermediary method_2388 Lnet/minecraft/class_849;method_2388()I
      named getInvSize Lnet/minecraft/inventory/Inventory;getInvSize()I
    • isEmpty

      public boolean isEmpty()
      Specified by:
      isEmpty in interface Inventory
      Mappings:
      Namespace Name Mixin selector
      official w_ Lrc;w_()Z
      intermediary method_13922 Lnet/minecraft/class_849;method_13922()Z
      named isEmpty Lnet/minecraft/inventory/Inventory;isEmpty()Z
    • getInvStack

      public ItemStack getInvStack(int slot)
      Specified by:
      getInvStack in interface Inventory
      Mappings:
      Namespace Name Mixin selector
      official a Lrc;a(I)Lafj;
      intermediary method_2381 Lnet/minecraft/class_849;method_2381(I)Lnet/minecraft/class_1071;
      named getInvStack Lnet/minecraft/inventory/Inventory;getInvStack(I)Lnet/minecraft/item/ItemStack;
    • takeInvStack

      public ItemStack takeInvStack(int slot, int amount)
      Specified by:
      takeInvStack in interface Inventory
      Mappings:
      Namespace Name Mixin selector
      official a Lrc;a(II)Lafj;
      intermediary method_2382 Lnet/minecraft/class_849;method_2382(II)Lnet/minecraft/class_1071;
      named takeInvStack Lnet/minecraft/inventory/Inventory;takeInvStack(II)Lnet/minecraft/item/ItemStack;
    • method_3282

      private boolean method_3282(int slot)
      Mappings:
      Namespace Name Mixin selector
      official e Ladd;e(I)Z
      intermediary method_3282 Lnet/minecraft/class_1020;method_3282(I)Z
      named method_3282 Lnet/minecraft/village/TraderInventory;method_3282(I)Z
    • removeInvStack

      public ItemStack removeInvStack(int slot)
      Specified by:
      removeInvStack in interface Inventory
      Mappings:
      Namespace Name Mixin selector
      official b Lrc;b(I)Lafj;
      intermediary method_2386 Lnet/minecraft/class_849;method_2386(I)Lnet/minecraft/class_1071;
      named removeInvStack Lnet/minecraft/inventory/Inventory;removeInvStack(I)Lnet/minecraft/item/ItemStack;
    • setInvStack

      public void setInvStack(int slot, ItemStack stack)
      Specified by:
      setInvStack in interface Inventory
      Mappings:
      Namespace Name Mixin selector
      official a Lrc;a(ILafj;)V
      intermediary method_2383 Lnet/minecraft/class_849;method_2383(ILnet/minecraft/class_1071;)V
      named setInvStack Lnet/minecraft/inventory/Inventory;setInvStack(ILnet/minecraft/item/ItemStack;)V
    • getTranslationKey

      public String getTranslationKey()
      Specified by:
      getTranslationKey in interface Nameable
      Mappings:
      Namespace Name Mixin selector
      official h_ Lrp;h_()Ljava/lang/String;
      intermediary method_2518 Lnet/minecraft/class_2611;method_2518()Ljava/lang/String;
      named getTranslationKey Lnet/minecraft/text/Nameable;getTranslationKey()Ljava/lang/String;
    • hasCustomName

      public boolean hasCustomName()
      Specified by:
      hasCustomName in interface Nameable
      Mappings:
      Namespace Name Mixin selector
      official n_ Lrp;n_()Z
      intermediary method_5339 Lnet/minecraft/class_2611;method_5339()Z
      named hasCustomName Lnet/minecraft/text/Nameable;hasCustomName()Z
    • method_6344

      public Text method_6344()
      Specified by:
      method_6344 in interface Nameable
      Mappings:
      Namespace Name Mixin selector
      official i_ Lrp;i_()Lfb;
      intermediary method_6344 Lnet/minecraft/class_2611;method_6344()Lnet/minecraft/class_1982;
      named method_6344 Lnet/minecraft/text/Nameable;method_6344()Lnet/minecraft/text/Text;
    • getInvMaxStackAmount

      public int getInvMaxStackAmount()
      Specified by:
      getInvMaxStackAmount in interface Inventory
      Mappings:
      Namespace Name Mixin selector
      official y_ Lrc;y_()I
      intermediary method_2389 Lnet/minecraft/class_849;method_2389()I
      named getInvMaxStackAmount Lnet/minecraft/inventory/Inventory;getInvMaxStackAmount()I
    • canPlayerUseInv

      public boolean canPlayerUseInv(PlayerEntity player)
      Specified by:
      canPlayerUseInv in interface Inventory
      Mappings:
      Namespace Name Mixin selector
      official a Lrc;a(Laay;)Z
      intermediary method_2384 Lnet/minecraft/class_849;method_2384(Lnet/minecraft/class_988;)Z
      named canPlayerUseInv Lnet/minecraft/inventory/Inventory;canPlayerUseInv(Lnet/minecraft/entity/player/PlayerEntity;)Z
    • onInvOpen

      public void onInvOpen(PlayerEntity player)
      Specified by:
      onInvOpen in interface Inventory
      Mappings:
      Namespace Name Mixin selector
      official b Lrc;b(Laay;)V
      intermediary method_10894 Lnet/minecraft/class_849;method_10894(Lnet/minecraft/class_988;)V
      named onInvOpen Lnet/minecraft/inventory/Inventory;onInvOpen(Lnet/minecraft/entity/player/PlayerEntity;)V
    • onInvClose

      public void onInvClose(PlayerEntity player)
      Specified by:
      onInvClose in interface Inventory
      Mappings:
      Namespace Name Mixin selector
      official c Lrc;c(Laay;)V
      intermediary method_10895 Lnet/minecraft/class_849;method_10895(Lnet/minecraft/class_988;)V
      named onInvClose Lnet/minecraft/inventory/Inventory;onInvClose(Lnet/minecraft/entity/player/PlayerEntity;)V
    • isValidInvStack

      public boolean isValidInvStack(int slot, ItemStack stack)
      Specified by:
      isValidInvStack in interface Inventory
      Mappings:
      Namespace Name Mixin selector
      official b Lrc;b(ILafj;)Z
      intermediary method_5338 Lnet/minecraft/class_849;method_5338(ILnet/minecraft/class_1071;)Z
      named isValidInvStack Lnet/minecraft/inventory/Inventory;isValidInvStack(ILnet/minecraft/item/ItemStack;)Z
    • markDirty

      public void markDirty()
      Specified by:
      markDirty in interface Inventory
      Mappings:
      Namespace Name Mixin selector
      official x_ Lrc;x_()V
      intermediary method_543 Lnet/minecraft/class_849;method_543()V
      named markDirty Lnet/minecraft/inventory/Inventory;markDirty()V
    • updateRecipes

      public void updateRecipes()
      Mappings:
      Namespace Name Mixin selector
      official i Ladd;i()V
      intermediary method_3283 Lnet/minecraft/class_1020;method_3283()V
      named updateRecipes Lnet/minecraft/village/TraderInventory;updateRecipes()V
    • getTradeOffer

      public TradeOffer getTradeOffer()
      Mappings:
      Namespace Name Mixin selector
      official j Ladd;j()Laje;
      intermediary method_3284 Lnet/minecraft/class_1020;method_3284()Lnet/minecraft/class_1144;
      named getTradeOffer Lnet/minecraft/village/TraderInventory;getTradeOffer()Lnet/minecraft/village/TradeOffer;
    • setRecipeIndex

      public void setRecipeIndex(int int2)
      Mappings:
      Namespace Name Mixin selector
      official d Ladd;d(I)V
      intermediary method_3281 Lnet/minecraft/class_1020;method_3281(I)V
      named setRecipeIndex Lnet/minecraft/village/TraderInventory;setRecipeIndex(I)V
    • getProperty

      public int getProperty(int key)
      Specified by:
      getProperty in interface Inventory
      Mappings:
      Namespace Name Mixin selector
      official c_ Lrc;c_(I)I
      intermediary method_10892 Lnet/minecraft/class_849;method_10892(I)I
      named getProperty Lnet/minecraft/inventory/Inventory;getProperty(I)I
    • setProperty

      public void setProperty(int id, int value)
      Specified by:
      setProperty in interface Inventory
      Mappings:
      Namespace Name Mixin selector
      official b Lrc;b(II)V
      intermediary method_10893 Lnet/minecraft/class_849;method_10893(II)V
      named setProperty Lnet/minecraft/inventory/Inventory;setProperty(II)V
    • getProperties

      public int getProperties()
      Specified by:
      getProperties in interface Inventory
      Mappings:
      Namespace Name Mixin selector
      official h Lrc;h()I
      intermediary method_10896 Lnet/minecraft/class_849;method_10896()I
      named getProperties Lnet/minecraft/inventory/Inventory;getProperties()I
    • clear

      public void clear()
      Specified by:
      clear in interface Inventory
      Mappings:
      Namespace Name Mixin selector
      official m Lrc;m()V
      intermediary method_10897 Lnet/minecraft/class_849;method_10897()V
      named clear Lnet/minecraft/inventory/Inventory;clear()V