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