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