Class VillagerScreenHandler

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

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

    • trader

      private Trader trader
      Mappings:
      Namespace Name Mixin selector
      official a Lajf;a:Laqb;
      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 TraderInventory traderInventory
      Mappings:
      Namespace Name Mixin selector
      official f Lajf;f:Laje;
      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 Lajf;g:Laqu;
      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> Lajf;<init>(Lahb;Laqb;Laqu;)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 Lajf;e()Laje;
      intermediary method_3286 Lnet/minecraft/class_1021;method_3286()Lnet/minecraft/class_1020;
      named getTraderInventory Lnet/minecraft/screen/VillagerScreenHandler;getTraderInventory()Lnet/minecraft/village/TraderInventory;
    • addListener

      public void addListener(ScreenHandlerListener listener)
      Overrides:
      addListener in class ScreenHandler
      Mappings:
      Namespace Name Mixin selector
      official a Laib;a(Lail;)V
      intermediary method_3260 Lnet/minecraft/class_1002;method_3260(Lnet/minecraft/class_1006;)V
      named addListener Lnet/minecraft/screen/ScreenHandler;addListener(Lnet/minecraft/screen/ScreenHandlerListener;)V
    • sendContentUpdates

      public void sendContentUpdates()
      Sends updates to listeners if any properties or slot stacks have changed.
      Overrides:
      sendContentUpdates in class ScreenHandler
      Mappings:
      Namespace Name Mixin selector
      official b Laib;b()V
      intermediary method_3264 Lnet/minecraft/class_1002;method_3264()V
      named sendContentUpdates Lnet/minecraft/screen/ScreenHandler;sendContentUpdates()V
    • onContentChanged

      public void onContentChanged(Inventory inventory)
      Overrides:
      onContentChanged in class ScreenHandler
      Mappings:
      Namespace Name Mixin selector
      official a Laib;a(Lvq;)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 Lajf;d(I)V
      intermediary method_3285 Lnet/minecraft/class_1021;method_3285(I)V
      named setRecipeIndex Lnet/minecraft/screen/VillagerScreenHandler;setRecipeIndex(I)V
    • setProperty

      @Environment(CLIENT) public void setProperty(int id, int value)
      Overrides:
      setProperty in class ScreenHandler
      Mappings:
      Namespace Name Mixin selector
      official b Laib;b(II)V
      intermediary method_3266 Lnet/minecraft/class_1002;method_3266(II)V
      named setProperty Lnet/minecraft/screen/ScreenHandler;setProperty(II)V
    • canUse

      public boolean canUse(PlayerEntity player)
      Specified by:
      canUse in class ScreenHandler
      Mappings:
      Namespace Name Mixin selector
      official a Laib;a(Lahd;)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 Laib;b(Lahd;I)Lamj;
      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 Laib;b(Lahd;)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