Class LecternInventoryTranslator
java.lang.Object
org.geysermc.geyser.translator.inventory.InventoryTranslator
org.geysermc.geyser.translator.inventory.BaseInventoryTranslator
org.geysermc.geyser.translator.inventory.LecternInventoryTranslator
-
Nested Class Summary
Nested classes/interfaces inherited from class org.geysermc.geyser.translator.inventory.InventoryTranslator
InventoryTranslator.CraftState
-
Field Summary
Fields inherited from class org.geysermc.geyser.translator.inventory.InventoryTranslator
INVENTORY_TRANSLATORS, PLAYER_INVENTORY_OFFSET, PLAYER_INVENTORY_SIZE, PLAYER_INVENTORY_TRANSLATOR, size
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
closeInventory(GeyserSession session, Inventory inventory)
createInventory(String name, int windowId, com.github.steveice10.mc.protocol.data.game.inventory.ContainerType containerType, PlayerInventory playerInventory)
static com.nukkitx.nbt.NbtMapBuilder
getBaseLecternTag(int x, int y, int z, int totalPages)
void
openInventory(GeyserSession session, Inventory inventory)
void
prepareInventory(GeyserSession session, Inventory inventory)
void
updateInventory(GeyserSession session, Inventory inventory)
void
updateProperty(GeyserSession session, Inventory inventory, int key, int value)
void
updateSlot(GeyserSession session, Inventory inventory, int slot)
Methods inherited from class org.geysermc.geyser.translator.inventory.BaseInventoryTranslator
bedrockSlotToJava, getSlotType, javaSlotToBedrock, javaSlotToBedrockContainer
Methods inherited from class org.geysermc.geyser.translator.inventory.InventoryTranslator
acceptRequest, checkNetId, dumpStackRequestDetails, isCursor, makeContainerEntries, makeItemEntry, rejectRequest, rejectRequest, shouldHandleRequestFirst, shouldRejectItemPlace, translateAutoCraftingRequest, translateCraftingRequest, translateCreativeRequest, translateRequest, translateRequests, translateSpecialRequest
-
Constructor Details
-
LecternInventoryTranslator
public LecternInventoryTranslator()
-
-
Method Details
-
prepareInventory
- Specified by:
prepareInventory
in classInventoryTranslator
-
openInventory
- Specified by:
openInventory
in classInventoryTranslator
-
closeInventory
- Specified by:
closeInventory
in classInventoryTranslator
-
updateProperty
- Overrides:
updateProperty
in classBaseInventoryTranslator
-
updateInventory
- Specified by:
updateInventory
in classInventoryTranslator
-
updateSlot
- Specified by:
updateSlot
in classInventoryTranslator
-
createInventory
public Inventory createInventory(String name, int windowId, com.github.steveice10.mc.protocol.data.game.inventory.ContainerType containerType, PlayerInventory playerInventory)- Overrides:
createInventory
in classBaseInventoryTranslator
-
getBaseLecternTag
public static com.nukkitx.nbt.NbtMapBuilder getBaseLecternTag(int x, int y, int z, int totalPages)
-