public class LecternScreenHandler extends ScreenHandler
Modifier and Type | Field and Description |
---|---|
private Inventory |
inventory |
private PropertyDelegate |
propertyDelegate |
slots, syncId
Constructor and Description |
---|
LecternScreenHandler(int syncId) |
LecternScreenHandler(int syncId,
Inventory inventory,
PropertyDelegate propertyDelegate) |
Modifier and Type | Method and Description |
---|---|
boolean |
canUse(PlayerEntity player) |
ItemStack |
getBookItem() |
int |
getPage() |
boolean |
onButtonClick(PlayerEntity player,
int id) |
void |
setProperty(int id,
int value) |
addListener, addProperties, addProperty, addSlot, calculateComparatorOutput, calculateComparatorOutput, calculateStackSize, canInsertIntoSlot, canInsertIntoSlot, canInsertItemIntoSlot, canStacksCombine, canUse, checkDataCount, checkSize, close, dropInventory, endQuickCraft, getNextActionId, getSlot, getStacks, getType, insertItem, isNotRestricted, onContentChanged, onSlotClick, packQuickCraftData, removeListener, sendContentUpdates, setPlayerRestriction, setStackInSlot, shouldQuickCraftContinue, transferSlot, unpackQuickCraftButton, unpackQuickCraftStage, updateSlotStacks
private final Inventory inventory
private final PropertyDelegate propertyDelegate
public LecternScreenHandler(int syncId)
public LecternScreenHandler(int syncId, Inventory inventory, PropertyDelegate propertyDelegate)
public boolean onButtonClick(PlayerEntity player, int id)
onButtonClick
in class ScreenHandler
public void setProperty(int id, int value)
setProperty
in class ScreenHandler
public boolean canUse(PlayerEntity player)
canUse
in class ScreenHandler
@Environment(value=CLIENT) public ItemStack getBookItem()
@Environment(value=CLIENT) public int getPage()