Package net.minecraft.screen
Class LecternScreenHandler
java.lang.Object
net.minecraft.screen.ScreenHandler
net.minecraft.screen.LecternScreenHandler
public class LecternScreenHandler extends ScreenHandler
-
Field Summary
Fields Modifier and Type Field Description private Inventoryinventoryprivate PropertyDelegatepropertyDelegateFields inherited from class net.minecraft.screen.ScreenHandler
slots, syncId -
Constructor Summary
Constructors Constructor Description LecternScreenHandler(int syncId)LecternScreenHandler(int syncId, Inventory inventory, PropertyDelegate propertyDelegate) -
Method Summary
Modifier and Type Method Description booleancanUse(PlayerEntity player)ItemStackgetBookItem()intgetPage()booleanonButtonClick(PlayerEntity player, int id)voidsetProperty(int id, int value)Methods inherited from class net.minecraft.screen.ScreenHandler
addListener, addProperties, addProperty, addSlot, calculateComparatorOutput, calculateComparatorOutput, calculateStackSize, canInsertIntoSlot, canInsertIntoSlot, canInsertItemIntoSlot, canUse, checkDataCount, checkSize, close, dropInventory, endQuickCraft, getNextActionId, getSlot, getStacks, getType, insertItem, isNotRestricted, onContentChanged, onSlotClick, packQuickCraftData, removeListener, sendContentUpdates, setPlayerRestriction, setStackInSlot, shouldQuickCraftContinue, transferSlot, unpackQuickCraftButton, unpackQuickCraftStage, updateSlotStacks
-
Field Details
-
inventory
-
propertyDelegate
-
-
Constructor Details
-
LecternScreenHandler
public LecternScreenHandler(int syncId) -
LecternScreenHandler
-
-
Method Details
-
onButtonClick
- Overrides:
onButtonClickin classScreenHandler
-
setProperty
public void setProperty(int id, int value)- Overrides:
setPropertyin classScreenHandler
-
canUse
- Specified by:
canUsein classScreenHandler
-
getBookItem
-
getPage
@Environment(CLIENT) public int getPage()
-