Class PlayerScreenHandler

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

public class PlayerScreenHandler
extends ScreenHandler
Mappings:
Namespace Name
official xy
intermediary net/minecraft/class_2002
named net/minecraft/screen/PlayerScreenHandler
  • Field Details

    • craftingInventory

      public CraftingInventory craftingInventory
      Mappings:
      Namespace Name Mixin selector
      official a Lxy;a:Lxp;
      intermediary field_8502 Lnet/minecraft/class_2002;field_8502:Lnet/minecraft/class_1993;
      named craftingInventory Lnet/minecraft/screen/PlayerScreenHandler;craftingInventory:Lnet/minecraft/inventory/CraftingInventory;
    • craftingResultInventory

      public Inventory craftingResultInventory
      Mappings:
      Namespace Name Mixin selector
      official f Lxy;f:Log;
      intermediary field_8503 Lnet/minecraft/class_2002;field_8503:Lnet/minecraft/class_1718;
      named craftingResultInventory Lnet/minecraft/screen/PlayerScreenHandler;craftingResultInventory:Lnet/minecraft/inventory/Inventory;
    • onServer

      public boolean onServer
      Mappings:
      Namespace Name Mixin selector
      official g Lxy;g:Z
      intermediary field_8504 Lnet/minecraft/class_2002;field_8504:Z
      named onServer Lnet/minecraft/screen/PlayerScreenHandler;onServer:Z
    • owner

      private final PlayerEntity owner
      Mappings:
      Namespace Name Mixin selector
      official h Lxy;h:Lwn;
      intermediary field_8505 Lnet/minecraft/class_2002;field_8505:Lnet/minecraft/class_1963;
      named owner Lnet/minecraft/screen/PlayerScreenHandler;owner:Lnet/minecraft/entity/player/PlayerEntity;
  • Constructor Details

    • PlayerScreenHandler

      public PlayerScreenHandler​(PlayerInventory inventory, boolean onServer, PlayerEntity owner)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lxy;<init>(Lwm;ZLwn;)V
      intermediary <init> Lnet/minecraft/class_2002;<init>(Lnet/minecraft/class_1962;ZLnet/minecraft/class_1963;)V
      named <init> Lnet/minecraft/screen/PlayerScreenHandler;<init>(Lnet/minecraft/entity/player/PlayerInventory;ZLnet/minecraft/entity/player/PlayerEntity;)V
  • Method Details

    • 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
    • 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
    • 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;
    • canInsertIntoSlot

      public boolean canInsertIntoSlot​(ItemStack stack, Slot slot)
      Overrides:
      canInsertIntoSlot in class ScreenHandler
      Mappings:
      Namespace Name Mixin selector
      official a Lxi;a(Lzx;Lyg;)Z
      intermediary method_8111 Lnet/minecraft/class_1983;method_8111(Lnet/minecraft/class_2056;Lnet/minecraft/class_2010;)Z
      named canInsertIntoSlot Lnet/minecraft/screen/ScreenHandler;canInsertIntoSlot(Lnet/minecraft/item/ItemStack;Lnet/minecraft/inventory/slot/Slot;)Z