Class VillagerScreenHandler

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

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

    • trader

      private Trader trader
      Mappings:
      Namespace Name Mixin selector
      official a Lyb;a:Lacy;
      intermediary field_8513 Lnet/minecraft/class_2005;field_8513:Lnet/minecraft/class_83;
      named trader Lnet/minecraft/screen/VillagerScreenHandler;trader:Lnet/minecraft/entity/data/Trader;
    • traderInventory

      private TraderInventory traderInventory
      Mappings:
      Namespace Name Mixin selector
      official f Lyb;f:Lya;
      intermediary field_8514 Lnet/minecraft/class_2005;field_8514:Lnet/minecraft/class_2004;
      named traderInventory Lnet/minecraft/screen/VillagerScreenHandler;traderInventory:Lnet/minecraft/village/TraderInventory;
    • world

      private final World world
      Mappings:
      Namespace Name Mixin selector
      official g Lyb;g:Ladm;
      intermediary field_8515 Lnet/minecraft/class_2005;field_8515:Lnet/minecraft/class_99;
      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> Lyb;<init>(Lwm;Lacy;Ladm;)V
      intermediary <init> Lnet/minecraft/class_2005;<init>(Lnet/minecraft/class_1962;Lnet/minecraft/class_83;Lnet/minecraft/class_99;)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 Lyb;e()Lya;
      intermediary method_8148 Lnet/minecraft/class_2005;method_8148()Lnet/minecraft/class_2004;
      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 Lxi;a(Lxn;)V
      intermediary method_8107 Lnet/minecraft/class_1983;method_8107(Lnet/minecraft/class_1991;)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 Lxi;b()V
      intermediary method_8113 Lnet/minecraft/class_1983;method_8113()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 Lxi;a(Log;)V
      intermediary method_8101 Lnet/minecraft/class_1983;method_8101(Lnet/minecraft/class_1718;)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 Lyb;d(I)V
      intermediary method_8147 Lnet/minecraft/class_2005;method_8147(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 Lxi;b(II)V
      intermediary method_8115 Lnet/minecraft/class_1983;method_8115(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 Lxi;a(Lwn;)Z
      intermediary method_8104 Lnet/minecraft/class_1983;method_8104(Lnet/minecraft/class_1963;)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 Lxi;b(Lwn;I)Lzx;
      intermediary method_8118 Lnet/minecraft/class_1983;method_8118(Lnet/minecraft/class_1963;I)Lnet/minecraft/class_2056;
      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 Lxi;b(Lwn;)V
      intermediary method_8117 Lnet/minecraft/class_1983;method_8117(Lnet/minecraft/class_1963;)V
      named close Lnet/minecraft/screen/ScreenHandler;close(Lnet/minecraft/entity/player/PlayerEntity;)V