public class Generic3x3ContainerScreenHandler extends ScreenHandler
Modifier and Type | Field and Description |
---|---|
private Inventory |
inventory |
slots, syncId
Constructor and Description |
---|
Generic3x3ContainerScreenHandler(int syncId,
PlayerInventory playerInventory) |
Generic3x3ContainerScreenHandler(int syncId,
PlayerInventory playerInventory,
Inventory inventory) |
Modifier and Type | Method and Description |
---|---|
boolean |
canUse(PlayerEntity player) |
void |
close(PlayerEntity player) |
ItemStack |
transferSlot(PlayerEntity player,
int index) |
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, updateSlotStacks
private final Inventory inventory
public Generic3x3ContainerScreenHandler(int syncId, PlayerInventory playerInventory)
public Generic3x3ContainerScreenHandler(int syncId, PlayerInventory playerInventory, Inventory inventory)
public boolean canUse(PlayerEntity player)
canUse
in class ScreenHandler
public ItemStack transferSlot(PlayerEntity player, int index)
transferSlot
in class ScreenHandler
public void close(PlayerEntity player)
close
in class ScreenHandler