Package net.minecraft.screen
Class PlayerScreenHandler
java.lang.Object
net.minecraft.screen.ScreenHandler
net.minecraft.screen.PlayerScreenHandler
public class PlayerScreenHandler extends ScreenHandler
- Mappings:
Namespace Name official xyintermediary net/minecraft/class_2002named net/minecraft/screen/PlayerScreenHandler
-
Field Summary
Fields Modifier and Type Field Description CraftingInventorycraftingInventoryInventorycraftingResultInventorybooleanonServerprivate PlayerEntityownerFields inherited from class net.minecraft.screen.ScreenHandler
listeners, slots, syncId, trackedStacks -
Constructor Summary
Constructors Constructor Description PlayerScreenHandler(PlayerInventory inventory, boolean onServer, PlayerEntity owner) -
Method Summary
Modifier and Type Method Description booleancanInsertIntoSlot(ItemStack stack, Slot slot)booleancanUse(PlayerEntity player)voidclose(PlayerEntity player)voidonContentChanged(Inventory inventory)ItemStacktransferSlot(PlayerEntity player, int invSlot)Methods inherited from class net.minecraft.screen.ScreenHandler
addListener, addSlot, calculateComparatorOutput, calculateComparatorOutput, calculateStackSize, canInsertIntoSlot, canInsertItemIntoSlot, endQuickCraft, getNextActionId, getSlot, getStacks, insertItem, isNotRestricted, method_8096, method_8102, onButtonClick, onSlotClick, packClickData, removeListener, sendContentUpdates, setPlayerRestriction, setProperty, setStackInSlot, shouldQuickCraftContinue, unpackButtonId, unpackQuickCraftStage, updateSlotStacks
-
Field Details
-
craftingInventory
- Mappings:
Namespace Name Mixin selector official aLxy;a:Lxp;intermediary field_8502Lnet/minecraft/class_2002;field_8502:Lnet/minecraft/class_1993;named craftingInventoryLnet/minecraft/screen/PlayerScreenHandler;craftingInventory:Lnet/minecraft/inventory/CraftingInventory;
-
craftingResultInventory
- Mappings:
Namespace Name Mixin selector official fLxy;f:Log;intermediary field_8503Lnet/minecraft/class_2002;field_8503:Lnet/minecraft/class_1718;named craftingResultInventoryLnet/minecraft/screen/PlayerScreenHandler;craftingResultInventory:Lnet/minecraft/inventory/Inventory;
-
onServer
public boolean onServer- Mappings:
Namespace Name Mixin selector official gLxy;g:Zintermediary field_8504Lnet/minecraft/class_2002;field_8504:Znamed onServerLnet/minecraft/screen/PlayerScreenHandler;onServer:Z
-
owner
- Mappings:
Namespace Name Mixin selector official hLxy;h:Lwn;intermediary field_8505Lnet/minecraft/class_2002;field_8505:Lnet/minecraft/class_1963;named ownerLnet/minecraft/screen/PlayerScreenHandler;owner:Lnet/minecraft/entity/player/PlayerEntity;
-
-
Constructor Details
-
PlayerScreenHandler
- Mappings:
Namespace Name Mixin selector official <init>Lxy;<init>(Lwm;ZLwn;)Vintermediary <init>Lnet/minecraft/class_2002;<init>(Lnet/minecraft/class_1962;ZLnet/minecraft/class_1963;)Vnamed <init>Lnet/minecraft/screen/PlayerScreenHandler;<init>(Lnet/minecraft/entity/player/PlayerInventory;ZLnet/minecraft/entity/player/PlayerEntity;)V
-
-
Method Details
-
onContentChanged
- Overrides:
onContentChangedin classScreenHandler- Mappings:
Namespace Name Mixin selector official aLxi;a(Log;)Vintermediary method_8101Lnet/minecraft/class_1983;method_8101(Lnet/minecraft/class_1718;)Vnamed onContentChangedLnet/minecraft/screen/ScreenHandler;onContentChanged(Lnet/minecraft/inventory/Inventory;)V
-
close
- Overrides:
closein classScreenHandler- Mappings:
Namespace Name Mixin selector official bLxi;b(Lwn;)Vintermediary method_8117Lnet/minecraft/class_1983;method_8117(Lnet/minecraft/class_1963;)Vnamed closeLnet/minecraft/screen/ScreenHandler;close(Lnet/minecraft/entity/player/PlayerEntity;)V
-
canUse
- Specified by:
canUsein classScreenHandler- Mappings:
Namespace Name Mixin selector official aLxi;a(Lwn;)Zintermediary method_8104Lnet/minecraft/class_1983;method_8104(Lnet/minecraft/class_1963;)Znamed canUseLnet/minecraft/screen/ScreenHandler;canUse(Lnet/minecraft/entity/player/PlayerEntity;)Z
-
transferSlot
- Overrides:
transferSlotin classScreenHandler- Mappings:
Namespace Name Mixin selector official bLxi;b(Lwn;I)Lzx;intermediary method_8118Lnet/minecraft/class_1983;method_8118(Lnet/minecraft/class_1963;I)Lnet/minecraft/class_2056;named transferSlotLnet/minecraft/screen/ScreenHandler;transferSlot(Lnet/minecraft/entity/player/PlayerEntity;I)Lnet/minecraft/item/ItemStack;
-
canInsertIntoSlot
- Overrides:
canInsertIntoSlotin classScreenHandler- Mappings:
Namespace Name Mixin selector official aLxi;a(Lzx;Lyg;)Zintermediary method_8111Lnet/minecraft/class_1983;method_8111(Lnet/minecraft/class_2056;Lnet/minecraft/class_2010;)Znamed canInsertIntoSlotLnet/minecraft/screen/ScreenHandler;canInsertIntoSlot(Lnet/minecraft/item/ItemStack;Lnet/minecraft/inventory/slot/Slot;)Z
-