public abstract class BaseInventoryTranslator extends InventoryTranslator
InventoryTranslator.CraftStateINVENTORY_TRANSLATORS, PLAYER_INVENTORY_OFFSET, PLAYER_INVENTORY_SIZE, PLAYER_INVENTORY_TRANSLATOR, size| Constructor and Description |
|---|
BaseInventoryTranslator(int size) |
| Modifier and Type | Method and Description |
|---|---|
int |
bedrockSlotToJava(com.nukkitx.protocol.bedrock.data.inventory.StackRequestSlotInfoData slotInfoData) |
Inventory |
createInventory(String name,
int windowId,
com.github.steveice10.mc.protocol.data.game.window.WindowType windowType,
PlayerInventory playerInventory) |
SlotType |
getSlotType(int javaSlot) |
int |
javaSlotToBedrock(int slot) |
BedrockContainerSlot |
javaSlotToBedrockContainer(int slot) |
void |
updateProperty(GeyserSession session,
Inventory inventory,
int key,
int value) |
acceptRequest, checkNetId, closeInventory, dumpStackRequestDetails, isCursor, makeContainerEntries, makeItemEntry, openInventory, prepareInventory, rejectRequest, rejectRequest, shouldHandleRequestFirst, shouldRejectItemPlace, translateAutoCraftingRequest, translateCraftingRequest, translateCreativeRequest, translateRequest, translateRequests, translateSpecialRequest, updateInventory, updateSlotpublic void updateProperty(GeyserSession session, Inventory inventory, int key, int value)
updateProperty in class InventoryTranslatorpublic int bedrockSlotToJava(com.nukkitx.protocol.bedrock.data.inventory.StackRequestSlotInfoData slotInfoData)
bedrockSlotToJava in class InventoryTranslatorpublic int javaSlotToBedrock(int slot)
javaSlotToBedrock in class InventoryTranslatorpublic BedrockContainerSlot javaSlotToBedrockContainer(int slot)
javaSlotToBedrockContainer in class InventoryTranslatorpublic SlotType getSlotType(int javaSlot)
getSlotType in class InventoryTranslatorpublic Inventory createInventory(String name, int windowId, com.github.steveice10.mc.protocol.data.game.window.WindowType windowType, PlayerInventory playerInventory)
createInventory in class InventoryTranslatorCopyright © 2021 GeyserMC. All rights reserved.