public class GenericContainerScreenHandler extends ScreenHandler
| Modifier and Type | Field and Description |
|---|---|
private Inventory |
inventory |
private int |
rows |
slots, syncId| Modifier | Constructor and Description |
|---|---|
private |
GenericContainerScreenHandler(ScreenHandlerType<?> type,
int syncId,
PlayerInventory playerInventory,
int rows) |
|
GenericContainerScreenHandler(ScreenHandlerType<?> type,
int syncId,
PlayerInventory playerInventory,
Inventory inventory,
int rows) |
addListener, addProperties, addProperty, addSlot, calculateComparatorOutput, calculateComparatorOutput, calculateStackSize, canInsertIntoSlot, canInsertIntoSlot, canInsertItemIntoSlot, canStacksCombine, canUse, checkDataCount, checkSize, dropInventory, endQuickCraft, getNextActionId, getSlot, getStacks, getType, insertItem, isNotRestricted, onButtonClick, onContentChanged, onSlotClick, packQuickCraftData, removeListener, sendContentUpdates, setPlayerRestriction, setProperty, setStackInSlot, shouldQuickCraftContinue, unpackQuickCraftButton, unpackQuickCraftStage, updateSlotStacksprivate final Inventory inventory
private final int rows
private GenericContainerScreenHandler(ScreenHandlerType<?> type, int syncId, PlayerInventory playerInventory, int rows)
public GenericContainerScreenHandler(ScreenHandlerType<?> type, int syncId, PlayerInventory playerInventory, Inventory inventory, int rows)
public static GenericContainerScreenHandler createGeneric9x1(int syncId, PlayerInventory playerInventory)
public static GenericContainerScreenHandler createGeneric9x2(int syncId, PlayerInventory playerInventory)
public static GenericContainerScreenHandler createGeneric9x3(int syncId, PlayerInventory playerInventory)
public static GenericContainerScreenHandler createGeneric9x4(int syncId, PlayerInventory playerInventory)
public static GenericContainerScreenHandler createGeneric9x5(int syncId, PlayerInventory playerInventory)
public static GenericContainerScreenHandler createGeneric9x6(int syncId, PlayerInventory playerInventory)
public static GenericContainerScreenHandler createGeneric9x3(int syncId, PlayerInventory playerInventory, Inventory inventory)
public static GenericContainerScreenHandler createGeneric9x6(int syncId, PlayerInventory playerInventory, Inventory inventory)
public boolean canUse(PlayerEntity player)
canUse in class ScreenHandlerpublic ItemStack transferSlot(PlayerEntity player, int index)
transferSlot in class ScreenHandlerpublic void close(PlayerEntity player)
close in class ScreenHandlerpublic Inventory getInventory()
@Environment(value=CLIENT) public int getRows()