public class AnvilInventoryTranslator extends AbstractBlockInventoryTranslator
InventoryTranslator.CraftStateINVENTORY_TRANSLATORS, PLAYER_INVENTORY_OFFSET, PLAYER_INVENTORY_SIZE, PLAYER_INVENTORY_TRANSLATOR, size| Constructor and Description |
|---|
AnvilInventoryTranslator() |
| 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)
Deprecated.
|
com.nukkitx.protocol.bedrock.packet.ItemStackResponsePacket.Response |
translateSpecialRequest(GeyserSession session,
Inventory inventory,
com.nukkitx.protocol.bedrock.data.inventory.ItemStackRequest request)
Deprecated.
|
closeInventory, openInventory, prepareInventory, updateInventory, updateSlotgetSlotType, updatePropertyacceptRequest, checkNetId, dumpStackRequestDetails, isCursor, makeContainerEntries, makeItemEntry, rejectRequest, rejectRequest, shouldRejectItemPlace, translateAutoCraftingRequest, translateCraftingRequest, translateCreativeRequest, translateRequest, translateRequests@Deprecated public boolean shouldHandleRequestFirst(com.nukkitx.protocol.bedrock.data.inventory.stackrequestactions.StackRequestActionData action, Inventory inventory)
InventoryTranslatorshouldHandleRequestFirst in class InventoryTranslator@Deprecated public 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.