Class BrewingInventoryTranslator
java.lang.Object
org.geysermc.geyser.translator.inventory.InventoryTranslator<Type>
org.geysermc.geyser.translator.inventory.BaseInventoryTranslator<Type>
org.geysermc.geyser.translator.inventory.AbstractBlockInventoryTranslator<Container>
org.geysermc.geyser.translator.inventory.BrewingInventoryTranslator
-
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
PLAYER_INVENTORY_OFFSET, PLAYER_INVENTORY_SIZE, PLAYER_INVENTORY_TRANSLATOR, size -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintbedrockSlotToJava(org.cloudburstmc.protocol.bedrock.data.inventory.itemstack.request.ItemStackRequestSlotData slotInfoData) Converts the Bedrock slot to the corresponding Java slot.@Nullable org.cloudburstmc.protocol.bedrock.data.inventory.ContainerTypecloseContainerType(Container container) intjavaSlotToBedrock(int slot) Converts a Java slot to the corresponding Bedrock slot.javaSlotToBedrockContainer(int slot, Container container) Converts a Java slot to the corresponding Bedrock container and slotvoidopenInventory(GeyserSession session, Container container) Opens the previously prepared inventory.voidupdateProperty(GeyserSession session, Container container, int key, int value) Updates a property in the inventory.Methods inherited from class org.geysermc.geyser.translator.inventory.AbstractBlockInventoryTranslator
canReuseInventory, closeInventory, prepareInventory, requiresOpeningDelay, updateInventory, updateSlotMethods inherited from class org.geysermc.geyser.translator.inventory.BaseInventoryTranslator
createInventory, getSlotTypeMethods inherited from class org.geysermc.geyser.translator.inventory.InventoryTranslator
acceptRequest, checkNetId, dumpStackRequestDetails, getGridSize, inventoryTranslator, isCursor, makeContainerEntries, rejectRequest, rejectRequest, shouldHandleRequestFirst, shouldRejectItemPlace, translateAutoCraftingRequest, translateCraftingRequest, translateCreativeRequest, translateRequest, translateRequests, translateSpecialRequest
-
Constructor Details
-
BrewingInventoryTranslator
public BrewingInventoryTranslator()
-
-
Method Details
-
openInventory
Description copied from class:InventoryTranslatorOpens the previously prepared inventory.- Overrides:
openInventoryin classAbstractBlockInventoryTranslator<Container>
-
updateProperty
Description copied from class:InventoryTranslatorUpdates a property in the inventory.- Overrides:
updatePropertyin classBaseInventoryTranslator<Container>
-
bedrockSlotToJava
public int bedrockSlotToJava(org.cloudburstmc.protocol.bedrock.data.inventory.itemstack.request.ItemStackRequestSlotData slotInfoData) Description copied from class:InventoryTranslatorConverts the Bedrock slot to the corresponding Java slot.- Overrides:
bedrockSlotToJavain classBaseInventoryTranslator<Container>
-
javaSlotToBedrock
public int javaSlotToBedrock(int slot) Description copied from class:InventoryTranslatorConverts a Java slot to the corresponding Bedrock slot.- Overrides:
javaSlotToBedrockin classBaseInventoryTranslator<Container>
-
javaSlotToBedrockContainer
Description copied from class:InventoryTranslatorConverts a Java slot to the corresponding Bedrock container and slot- Overrides:
javaSlotToBedrockContainerin classBaseInventoryTranslator<Container>
-
closeContainerType
public @Nullable org.cloudburstmc.protocol.bedrock.data.inventory.ContainerType closeContainerType(Container container) - Specified by:
closeContainerTypein classAbstractBlockInventoryTranslator<Container>
-