public class EnchantingInventoryTranslator extends AbstractBlockInventoryTranslator
| Modifier and Type | Class and Description |
|---|---|
static class |
EnchantingInventoryTranslator.JavaEnchantment
Enchantments classified by their Java index
|
InventoryTranslator.CraftStateINVENTORY_TRANSLATORS, PLAYER_INVENTORY_OFFSET, PLAYER_INVENTORY_SIZE, PLAYER_INVENTORY_TRANSLATOR, size| Constructor and Description |
|---|
EnchantingInventoryTranslator() |
| 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) |
int |
javaSlotToBedrock(int slot) |
BedrockContainerSlot |
javaSlotToBedrockContainer(int slot) |
boolean |
shouldHandleRequestFirst(com.nukkitx.protocol.bedrock.data.inventory.stackrequestactions.StackRequestActionData action,
Inventory inventory)
Should be overrided if this request matches a certain criteria and shouldn't be treated normally.
|
com.nukkitx.protocol.bedrock.packet.ItemStackResponsePacket.Response |
translateSpecialRequest(GeyserSession session,
Inventory inventory,
com.nukkitx.protocol.bedrock.data.inventory.ItemStackRequest request)
If
InventoryTranslator.shouldHandleRequestFirst(StackRequestActionData, Inventory) returns true, this will be called |
void |
updateProperty(GeyserSession session,
Inventory inventory,
int key,
int value) |
closeInventory, openInventory, prepareInventory, updateInventory, updateSlotgetSlotTypeacceptRequest, checkNetId, dumpStackRequestDetails, isCursor, makeContainerEntries, makeItemEntry, rejectRequest, rejectRequest, shouldRejectItemPlace, translateAutoCraftingRequest, translateCraftingRequest, translateCreativeRequest, translateRequest, translateRequestspublic void updateProperty(GeyserSession session, Inventory inventory, int key, int value)
updateProperty in class BaseInventoryTranslatorpublic boolean shouldHandleRequestFirst(com.nukkitx.protocol.bedrock.data.inventory.stackrequestactions.StackRequestActionData action,
Inventory inventory)
InventoryTranslatorshouldHandleRequestFirst in class InventoryTranslatorpublic com.nukkitx.protocol.bedrock.packet.ItemStackResponsePacket.Response translateSpecialRequest(GeyserSession session, Inventory inventory, com.nukkitx.protocol.bedrock.data.inventory.ItemStackRequest request)
InventoryTranslatorInventoryTranslator.shouldHandleRequestFirst(StackRequestActionData, Inventory) returns true, this will be calledtranslateSpecialRequest in class InventoryTranslatorpublic int bedrockSlotToJava(com.nukkitx.protocol.bedrock.data.inventory.StackRequestSlotInfoData slotInfoData)
bedrockSlotToJava in class BaseInventoryTranslatorpublic BedrockContainerSlot javaSlotToBedrockContainer(int slot)
javaSlotToBedrockContainer in class BaseInventoryTranslatorpublic int javaSlotToBedrock(int slot)
javaSlotToBedrock in class BaseInventoryTranslatorpublic Inventory createInventory(String name, int windowId, com.github.steveice10.mc.protocol.data.game.window.WindowType windowType, PlayerInventory playerInventory)
createInventory in class BaseInventoryTranslatorCopyright © 2021 GeyserMC. All rights reserved.