Package org.geysermc.geyser.inventory
Class LecternContainer
java.lang.Object
org.geysermc.geyser.inventory.Inventory
org.geysermc.geyser.inventory.Container
org.geysermc.geyser.inventory.LecternContainer
-
Field Summary
Fields inherited from class org.geysermc.geyser.inventory.Container
playerInventoryFields inherited from class org.geysermc.geyser.inventory.Inventory
containerType, holderId, holderPosition, items, javaId, size, title -
Constructor Summary
ConstructorsConstructorDescriptionLecternContainer(GeyserSession session, String title, int id, int size, org.geysermc.mcprotocollib.protocol.data.game.inventory.ContainerType containerType) -
Method Summary
Modifier and TypeMethodDescriptionorg.cloudburstmc.nbt.NbtMapintintintbooleanvoidsetBlockEntityTag(org.cloudburstmc.nbt.NbtMap blockEntityTag) voidsetCurrentBedrockPage(int currentBedrockPage) voidsetCurrentBookHash(int currentBookHash) voidsetMaxPages(int maxPages) voidsetVirtualLecternBook(GeyserItemStack book, GeyserSession session) This is used ONLY once to set the book of a fake lectern inJavaOpenBookTranslator.booleanWhether we should be sending aServerboundContainerClosePacketwhen closing the inventory.Methods inherited from class org.geysermc.geyser.inventory.Container
getContainerSize, getIntegratedPackTitlePrefix, getItem, getOffsetForHotbar, getPlayerInventory, getPrefixedTitle, getSize, isUsingRealBlock, setItem, setUsingRealBlockMethods inherited from class org.geysermc.geyser.inventory.Inventory
getBedrockId, getContainerType, getHolderId, getHolderPosition, getJavaId, getNextStateId, getStateId, getTitle, incrementStateId, isDisplayed, resetNextStateId, setBedrockId, setDisplayed, setHolderId, setHolderPosition, setStateId, toString, updateItemNetId
-
Constructor Details
-
LecternContainer
public LecternContainer(GeyserSession session, String title, int id, int size, org.geysermc.mcprotocollib.protocol.data.game.inventory.ContainerType containerType)
-
-
Method Details
-
setVirtualLecternBook
This is used ONLY once to set the book of a fake lectern inJavaOpenBookTranslator. SeeContainer.setItem(int, GeyserItemStack, GeyserSession)as for why this is separate. -
shouldConfirmContainerClose
public boolean shouldConfirmContainerClose()Description copied from class:InventoryWhether we should be sending aServerboundContainerClosePacketwhen closing the inventory.- Overrides:
shouldConfirmContainerClosein classInventory
-
getCurrentBedrockPage
public int getCurrentBedrockPage() -
getMaxPages
public int getMaxPages() -
getBlockEntityTag
public org.cloudburstmc.nbt.NbtMap getBlockEntityTag() -
getCurrentBookHash
public int getCurrentBookHash() -
isBookInPlayerInventory
public boolean isBookInPlayerInventory() -
setCurrentBedrockPage
public void setCurrentBedrockPage(int currentBedrockPage) -
setMaxPages
public void setMaxPages(int maxPages) -
setBlockEntityTag
public void setBlockEntityTag(org.cloudburstmc.nbt.NbtMap blockEntityTag) -
setCurrentBookHash
public void setCurrentBookHash(int currentBookHash)
-