Class AnvilInventoryTranslator
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.AnvilInventoryTranslator
-
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)
createInventory(String name, int windowId, com.github.steveice10.mc.protocol.data.game.inventory.ContainerType containerType, PlayerInventory playerInventory)
int
javaSlotToBedrock(int slot)
javaSlotToBedrockContainer(int slot)
void
updateProperty(GeyserSession session, Inventory inventory, int key, int value)
Methods inherited from class org.geysermc.geyser.translator.inventory.AbstractBlockInventoryTranslator
closeInventory, openInventory, prepareInventory, updateInventory, updateSlot
Methods inherited from class org.geysermc.geyser.translator.inventory.BaseInventoryTranslator
getSlotType
Methods inherited from class org.geysermc.geyser.translator.inventory.InventoryTranslator
acceptRequest, checkNetId, dumpStackRequestDetails, isCursor, makeContainerEntries, makeItemEntry, rejectRequest, rejectRequest, shouldHandleRequestFirst, shouldRejectItemPlace, translateAutoCraftingRequest, translateCraftingRequest, translateCreativeRequest, translateRequest, translateRequests, translateSpecialRequest
-
Constructor Details
-
AnvilInventoryTranslator
public AnvilInventoryTranslator()
-
-
Method Details
-
bedrockSlotToJava
public int bedrockSlotToJava(com.nukkitx.protocol.bedrock.data.inventory.StackRequestSlotInfoData slotInfoData)- Overrides:
bedrockSlotToJava
in classBaseInventoryTranslator
-
javaSlotToBedrockContainer
- Overrides:
javaSlotToBedrockContainer
in classBaseInventoryTranslator
-
javaSlotToBedrock
public int javaSlotToBedrock(int slot)- Overrides:
javaSlotToBedrock
in classBaseInventoryTranslator
-
createInventory
public Inventory createInventory(String name, int windowId, com.github.steveice10.mc.protocol.data.game.inventory.ContainerType containerType, PlayerInventory playerInventory)- Overrides:
createInventory
in classBaseInventoryTranslator
-
updateProperty
- Overrides:
updateProperty
in classBaseInventoryTranslator
-