public abstract class BaseInventoryTranslator extends InventoryTranslator
size| Modifier and Type | Method and Description |
|---|---|
int |
bedrockSlotToJava(com.nukkitx.protocol.bedrock.data.InventoryActionData action) |
SlotType |
getSlotType(int javaSlot) |
int |
javaSlotToBedrock(int slot) |
void |
translateActions(GeyserSession session,
Inventory inventory,
List<com.nukkitx.protocol.bedrock.data.InventoryActionData> actions) |
void |
updateProperty(GeyserSession session,
Inventory inventory,
int key,
int value) |
closeInventory, openInventory, prepareInventory, updateInventory, updateSlotpublic void updateProperty(GeyserSession session, Inventory inventory, int key, int value)
updateProperty in class InventoryTranslatorpublic int bedrockSlotToJava(com.nukkitx.protocol.bedrock.data.InventoryActionData action)
bedrockSlotToJava in class InventoryTranslatorpublic int javaSlotToBedrock(int slot)
javaSlotToBedrock in class InventoryTranslatorpublic SlotType getSlotType(int javaSlot)
getSlotType in class InventoryTranslatorpublic void translateActions(GeyserSession session, Inventory inventory, List<com.nukkitx.protocol.bedrock.data.InventoryActionData> actions)
translateActions in class InventoryTranslatorCopyright © 2020 GeyserMC. All rights reserved.