public class StonecutterInventoryTranslator extends AbstractBlockInventoryTranslator
InventoryTranslator.CraftStateINVENTORY_TRANSLATORS, PLAYER_INVENTORY_OFFSET, PLAYER_INVENTORY_SIZE, PLAYER_INVENTORY_TRANSLATOR, size| Constructor and Description |
|---|
StonecutterInventoryTranslator() |
| 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) |
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 |
closeInventory, openInventory, prepareInventory, updateInventory, updateSlotupdatePropertyacceptRequest, checkNetId, dumpStackRequestDetails, isCursor, makeContainerEntries, makeItemEntry, rejectRequest, rejectRequest, shouldRejectItemPlace, translateAutoCraftingRequest, translateCraftingRequest, translateCreativeRequest, translateRequest, translateRequestspublic 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 SlotType getSlotType(int javaSlot)
getSlotType 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.