Class EnchantingInventoryTranslator
java.lang.Object
org.geysermc.geyser.translator.inventory.InventoryTranslator
org.geysermc.geyser.translator.inventory.BaseInventoryTranslator
org.geysermc.geyser.translator.inventory.AbstractBlockInventoryTranslator
org.geysermc.geyser.translator.inventory.EnchantingInventoryTranslator
- 
Nested Class SummaryNested classes/interfaces inherited from class org.geysermc.geyser.translator.inventory.InventoryTranslatorInventoryTranslator.CraftState
- 
Field SummaryFields inherited from class org.geysermc.geyser.translator.inventory.InventoryTranslatorINVENTORY_TRANSLATORS, PLAYER_INVENTORY_OFFSET, PLAYER_INVENTORY_SIZE, PLAYER_INVENTORY_TRANSLATOR, size
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionintbedrockSlotToJava(com.nukkitx.protocol.bedrock.data.inventory.StackRequestSlotInfoData slotInfoData)createInventory(String name, int windowId, com.github.steveice10.mc.protocol.data.game.inventory.ContainerType containerType, PlayerInventory playerInventory)intjavaSlotToBedrock(int slot)javaSlotToBedrockContainer(int slot)booleanshouldHandleRequestFirst(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.ResponsetranslateSpecialRequest(GeyserSession session, Inventory inventory, com.nukkitx.protocol.bedrock.data.inventory.ItemStackRequest request)IfInventoryTranslator.shouldHandleRequestFirst(StackRequestActionData, Inventory)returns true, this will be calledvoidupdateProperty(GeyserSession session, Inventory inventory, int key, int value)Methods inherited from class org.geysermc.geyser.translator.inventory.AbstractBlockInventoryTranslatorcloseInventory, openInventory, prepareInventory, updateInventory, updateSlotMethods inherited from class org.geysermc.geyser.translator.inventory.BaseInventoryTranslatorgetSlotTypeMethods inherited from class org.geysermc.geyser.translator.inventory.InventoryTranslatoracceptRequest, checkNetId, dumpStackRequestDetails, isCursor, makeContainerEntries, makeItemEntry, rejectRequest, rejectRequest, shouldRejectItemPlace, translateAutoCraftingRequest, translateCraftingRequest, translateCreativeRequest, translateRequest, translateRequests
- 
Constructor Details- 
EnchantingInventoryTranslatorpublic EnchantingInventoryTranslator()
 
- 
- 
Method Details- 
updateProperty- Overrides:
- updatePropertyin class- BaseInventoryTranslator
 
- 
shouldHandleRequestFirstpublic boolean shouldHandleRequestFirst(com.nukkitx.protocol.bedrock.data.inventory.stackrequestactions.StackRequestActionData action, Inventory inventory)Description copied from class:InventoryTranslatorShould be overrided if this request matches a certain criteria and shouldn't be treated normally. E.G. anvil renaming or enchanting- Overrides:
- shouldHandleRequestFirstin class- InventoryTranslator
 
- 
translateSpecialRequestpublic com.nukkitx.protocol.bedrock.packet.ItemStackResponsePacket.Response translateSpecialRequest(GeyserSession session, Inventory inventory, com.nukkitx.protocol.bedrock.data.inventory.ItemStackRequest request)Description copied from class:InventoryTranslatorIfInventoryTranslator.shouldHandleRequestFirst(StackRequestActionData, Inventory)returns true, this will be called- Overrides:
- translateSpecialRequestin class- InventoryTranslator
 
- 
bedrockSlotToJavapublic int bedrockSlotToJava(com.nukkitx.protocol.bedrock.data.inventory.StackRequestSlotInfoData slotInfoData)- Overrides:
- bedrockSlotToJavain class- BaseInventoryTranslator
 
- 
javaSlotToBedrockContainer- Overrides:
- javaSlotToBedrockContainerin class- BaseInventoryTranslator
 
- 
javaSlotToBedrockpublic int javaSlotToBedrock(int slot)- Overrides:
- javaSlotToBedrockin class- BaseInventoryTranslator
 
- 
createInventorypublic Inventory createInventory(String name, int windowId, com.github.steveice10.mc.protocol.data.game.inventory.ContainerType containerType, PlayerInventory playerInventory)- Overrides:
- createInventoryin class- BaseInventoryTranslator
 
 
-