Package net.minecraft.screen
Class GenericContainerScreenHandler
java.lang.Object
net.minecraft.screen.ScreenHandler
net.minecraft.screen.GenericContainerScreenHandler
public class GenericContainerScreenHandler extends ScreenHandler
-
Field Summary
Fields inherited from class net.minecraft.screen.ScreenHandler
slots, syncId
-
Constructor Summary
Constructors Modifier Constructor Description private
GenericContainerScreenHandler(ScreenHandlerType<?> type, int syncId, PlayerInventory playerInventory, int rows)
GenericContainerScreenHandler(ScreenHandlerType<?> type, int syncId, PlayerInventory playerInventory, Inventory inventory, int rows)
-
Method Summary
Methods inherited from class net.minecraft.screen.ScreenHandler
addListener, addProperties, addProperty, addSlot, calculateComparatorOutput, calculateComparatorOutput, calculateStackSize, canInsertIntoSlot, canInsertIntoSlot, canInsertItemIntoSlot, canUse, checkDataCount, checkSize, dropInventory, endQuickCraft, getNextActionId, getSlot, getStacks, getType, insertItem, isNotRestricted, onButtonClick, onContentChanged, onSlotClick, packQuickCraftData, removeListener, sendContentUpdates, setPlayerRestriction, setProperty, setStackInSlot, shouldQuickCraftContinue, unpackQuickCraftButton, unpackQuickCraftStage, updateSlotStacks
-
Field Details
-
inventory
-
rows
private final int rows
-
-
Constructor Details
-
GenericContainerScreenHandler
private GenericContainerScreenHandler(ScreenHandlerType<?> type, int syncId, PlayerInventory playerInventory, int rows) -
GenericContainerScreenHandler
public GenericContainerScreenHandler(ScreenHandlerType<?> type, int syncId, PlayerInventory playerInventory, Inventory inventory, int rows)
-
-
Method Details
-
createGeneric9x1
public static GenericContainerScreenHandler createGeneric9x1(int syncId, PlayerInventory playerInventory) -
createGeneric9x2
public static GenericContainerScreenHandler createGeneric9x2(int syncId, PlayerInventory playerInventory) -
createGeneric9x3
public static GenericContainerScreenHandler createGeneric9x3(int syncId, PlayerInventory playerInventory) -
createGeneric9x4
public static GenericContainerScreenHandler createGeneric9x4(int syncId, PlayerInventory playerInventory) -
createGeneric9x5
public static GenericContainerScreenHandler createGeneric9x5(int syncId, PlayerInventory playerInventory) -
createGeneric9x6
public static GenericContainerScreenHandler createGeneric9x6(int syncId, PlayerInventory playerInventory) -
createGeneric9x3
public static GenericContainerScreenHandler createGeneric9x3(int syncId, PlayerInventory playerInventory, Inventory inventory) -
createGeneric9x6
public static GenericContainerScreenHandler createGeneric9x6(int syncId, PlayerInventory playerInventory, Inventory inventory) -
canUse
- Specified by:
canUse
in classScreenHandler
-
transferSlot
- Overrides:
transferSlot
in classScreenHandler
-
close
- Overrides:
close
in classScreenHandler
-
getInventory
-
getRows
@Environment(CLIENT) public int getRows()
-