Class VillagerScreenHandler

java.lang.Object
net.minecraft.screen.ScreenHandler
net.minecraft.screen.VillagerScreenHandler

public class VillagerScreenHandler extends ScreenHandler
Mappings:
Namespace Name
official agk
intermediary net/minecraft/class_1021
named net/minecraft/screen/VillagerScreenHandler
  • Field Details

    • trader

      private final Trader trader
      Mappings:
      Namespace Name Mixin selector
      official a Lagk;a:Lamf;
      intermediary field_4138 Lnet/minecraft/class_1021;field_4138:Lnet/minecraft/class_1143;
      named trader Lnet/minecraft/screen/VillagerScreenHandler;trader:Lnet/minecraft/entity/data/Trader;
    • traderInventory

      private final TraderInventory traderInventory
      Mappings:
      Namespace Name Mixin selector
      official f Lagk;f:Lagj;
      intermediary field_4139 Lnet/minecraft/class_1021;field_4139:Lnet/minecraft/class_1020;
      named traderInventory Lnet/minecraft/screen/VillagerScreenHandler;traderInventory:Lnet/minecraft/village/TraderInventory;
    • world

      private final World world
      Mappings:
      Namespace Name Mixin selector
      official g Lagk;g:Lamu;
      intermediary field_4140 Lnet/minecraft/class_1021;field_4140:Lnet/minecraft/class_1150;
      named world Lnet/minecraft/screen/VillagerScreenHandler;world:Lnet/minecraft/world/World;
  • Constructor Details

    • VillagerScreenHandler

      public VillagerScreenHandler(PlayerInventory playerInventory, Trader trader, World world)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lagk;<init>(Laec;Lamf;Lamu;)V
      intermediary <init> Lnet/minecraft/class_1021;<init>(Lnet/minecraft/class_987;Lnet/minecraft/class_1143;Lnet/minecraft/class_1150;)V
      named <init> Lnet/minecraft/screen/VillagerScreenHandler;<init>(Lnet/minecraft/entity/player/PlayerInventory;Lnet/minecraft/entity/data/Trader;Lnet/minecraft/world/World;)V
  • Method Details

    • getTraderInventory

      public TraderInventory getTraderInventory()
      Mappings:
      Namespace Name Mixin selector
      official e Lagk;e()Lagj;
      intermediary method_3286 Lnet/minecraft/class_1021;method_3286()Lnet/minecraft/class_1020;
      named getTraderInventory Lnet/minecraft/screen/VillagerScreenHandler;getTraderInventory()Lnet/minecraft/village/TraderInventory;
    • onContentChanged

      public void onContentChanged(Inventory inventory)
      Overrides:
      onContentChanged in class ScreenHandler
      Mappings:
      Namespace Name Mixin selector
      official a Lafr;a(Ltv;)V
      intermediary method_3254 Lnet/minecraft/class_1002;method_3254(Lnet/minecraft/class_849;)V
      named onContentChanged Lnet/minecraft/screen/ScreenHandler;onContentChanged(Lnet/minecraft/inventory/Inventory;)V
    • setRecipeIndex

      public void setRecipeIndex(int index)
      Mappings:
      Namespace Name Mixin selector
      official d Lagk;d(I)V
      intermediary method_3285 Lnet/minecraft/class_1021;method_3285(I)V
      named setRecipeIndex Lnet/minecraft/screen/VillagerScreenHandler;setRecipeIndex(I)V
    • canUse

      public boolean canUse(PlayerEntity player)
      Specified by:
      canUse in class ScreenHandler
      Mappings:
      Namespace Name Mixin selector
      official a Lafr;a(Laed;)Z
      intermediary method_3269 Lnet/minecraft/class_1002;method_3269(Lnet/minecraft/class_988;)Z
      named canUse Lnet/minecraft/screen/ScreenHandler;canUse(Lnet/minecraft/entity/player/PlayerEntity;)Z
    • transferSlot

      public ItemStack transferSlot(PlayerEntity player, int invSlot)
      Overrides:
      transferSlot in class ScreenHandler
      Mappings:
      Namespace Name Mixin selector
      official b Lafr;b(Laed;I)Laip;
      intermediary method_3265 Lnet/minecraft/class_1002;method_3265(Lnet/minecraft/class_988;I)Lnet/minecraft/class_1071;
      named transferSlot Lnet/minecraft/screen/ScreenHandler;transferSlot(Lnet/minecraft/entity/player/PlayerEntity;I)Lnet/minecraft/item/ItemStack;
    • close

      public void close(PlayerEntity player)
      Overrides:
      close in class ScreenHandler
      Mappings:
      Namespace Name Mixin selector
      official b Lafr;b(Laed;)V
      intermediary method_3257 Lnet/minecraft/class_1002;method_3257(Lnet/minecraft/class_988;)V
      named close Lnet/minecraft/screen/ScreenHandler;close(Lnet/minecraft/entity/player/PlayerEntity;)V