Class MerchantInventoryTranslator
java.lang.Object
org.geysermc.geyser.translator.inventory.InventoryTranslator
org.geysermc.geyser.translator.inventory.BaseInventoryTranslator
org.geysermc.geyser.translator.inventory.MerchantInventoryTranslator
-
Nested Class Summary
Nested classes/interfaces inherited from class org.geysermc.geyser.translator.inventory.InventoryTranslator
InventoryTranslator.CraftState
-
Field Summary
Fields inherited from class org.geysermc.geyser.translator.inventory.InventoryTranslator
INVENTORY_TRANSLATORS, PLAYER_INVENTORY_OFFSET, PLAYER_INVENTORY_SIZE, PLAYER_INVENTORY_TRANSLATOR, size
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
bedrockSlotToJava(com.nukkitx.protocol.bedrock.data.inventory.StackRequestSlotInfoData slotInfoData)
void
closeInventory(GeyserSession session, Inventory inventory)
createInventory(String name, int windowId, com.github.steveice10.mc.protocol.data.game.inventory.ContainerType containerType, PlayerInventory playerInventory)
getSlotType(int javaSlot)
int
javaSlotToBedrock(int slot)
javaSlotToBedrockContainer(int slot)
void
openInventory(GeyserSession session, Inventory inventory)
void
prepareInventory(GeyserSession session, Inventory inventory)
com.nukkitx.protocol.bedrock.packet.ItemStackResponsePacket.Response
translateAutoCraftingRequest(GeyserSession session, Inventory inventory, com.nukkitx.protocol.bedrock.data.inventory.ItemStackRequest request)
void
updateInventory(GeyserSession session, Inventory inventory)
void
updateSlot(GeyserSession session, Inventory inventory, int slot)
Methods inherited from class org.geysermc.geyser.translator.inventory.BaseInventoryTranslator
updateProperty
Methods inherited from class org.geysermc.geyser.translator.inventory.InventoryTranslator
acceptRequest, checkNetId, dumpStackRequestDetails, isCursor, makeContainerEntries, makeItemEntry, rejectRequest, rejectRequest, shouldHandleRequestFirst, shouldRejectItemPlace, translateCraftingRequest, translateCreativeRequest, translateRequest, translateRequests, translateSpecialRequest
-
Constructor Details
-
MerchantInventoryTranslator
public MerchantInventoryTranslator()
-
-
Method Details
-
javaSlotToBedrock
public int javaSlotToBedrock(int slot)- Overrides:
javaSlotToBedrock
in classBaseInventoryTranslator
-
javaSlotToBedrockContainer
- Overrides:
javaSlotToBedrockContainer
in classBaseInventoryTranslator
-
bedrockSlotToJava
public int bedrockSlotToJava(com.nukkitx.protocol.bedrock.data.inventory.StackRequestSlotInfoData slotInfoData)- Overrides:
bedrockSlotToJava
in classBaseInventoryTranslator
-
getSlotType
- Overrides:
getSlotType
in classBaseInventoryTranslator
-
prepareInventory
- Specified by:
prepareInventory
in classInventoryTranslator
-
openInventory
- Specified by:
openInventory
in classInventoryTranslator
-
closeInventory
- Specified by:
closeInventory
in classInventoryTranslator
-
translateAutoCraftingRequest
public com.nukkitx.protocol.bedrock.packet.ItemStackResponsePacket.Response translateAutoCraftingRequest(GeyserSession session, Inventory inventory, com.nukkitx.protocol.bedrock.data.inventory.ItemStackRequest request)- Overrides:
translateAutoCraftingRequest
in classInventoryTranslator
-
updateInventory
- Specified by:
updateInventory
in classInventoryTranslator
-
updateSlot
- Specified by:
updateSlot
in classInventoryTranslator
-
createInventory
public Inventory createInventory(String name, int windowId, com.github.steveice10.mc.protocol.data.game.inventory.ContainerType containerType, PlayerInventory playerInventory)- Overrides:
createInventory
in classBaseInventoryTranslator
-