public class ShulkerBoxScreenHandler extends ScreenHandler
Modifier and Type | Field and Description |
---|---|
private Inventory |
inventory |
slots, syncId
Constructor and Description |
---|
ShulkerBoxScreenHandler(int syncId,
PlayerInventory playerInventory) |
ShulkerBoxScreenHandler(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 ShulkerBoxScreenHandler(int syncId, PlayerInventory playerInventory)
public ShulkerBoxScreenHandler(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