From b157e3a1910724ed4c12a8a6ed75ddfff6e9a74b Mon Sep 17 00:00:00 2001 From: "coderabbitai[bot]" <136622811+coderabbitai[bot]@users.noreply.github.com> Date: Tue, 3 Feb 2026 04:06:58 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20Add=20docstrings=20to=20`New-GUI?= =?UTF-8?q?s`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Docstrings generation was requested by @AnyaPizza. * https://github.com/CodeMonkeysMods/MineTale/pull/20#issuecomment-3838928928 The following files were modified: * `src/main/java/com/tcm/MineTale/block/workbenches/menu/AbstractWorkbenchContainerMenu.java` --- .../workbenches/menu/AbstractWorkbenchContainerMenu.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/tcm/MineTale/block/workbenches/menu/AbstractWorkbenchContainerMenu.java b/src/main/java/com/tcm/MineTale/block/workbenches/menu/AbstractWorkbenchContainerMenu.java index 01cee3c..e4c030a 100644 --- a/src/main/java/com/tcm/MineTale/block/workbenches/menu/AbstractWorkbenchContainerMenu.java +++ b/src/main/java/com/tcm/MineTale/block/workbenches/menu/AbstractWorkbenchContainerMenu.java @@ -21,13 +21,12 @@ public abstract class AbstractWorkbenchContainerMenu extends AbstractContainerMe private final ContainerData data; /** - * Creates a workbench container menu backed by the given inventory and sync data, sets up slots - * (fuel slot, two inputs, four result slots) and binds player inventory/hotbar and data for progress syncing. + * Initializes a workbench container menu backed by the given inventory and sync data, validates sizes, opens the container, sets up the fuel slot, two input slots and four result slots, binds the player's inventory and hotbar, and registers data for cook/burn progress synchronization. * - * @param menuType the menu type (may be null for dynamic registration) + * @param menuType the menu type; may be null for dynamic registration * @param syncId the window synchronization id - * @param container the underlying container inventory for the workbench - * @param data the container data used to synchronize cook and burn progress + * @param container the underlying workbench inventory + * @param data container data used to synchronize cook and burn progress * @param containerSize expected size of {@code container}; validated by this constructor * @param containerDataSize expected size of {@code data}; validated by this constructor * @param playerInventory the player's inventory used to add player slots and to identify the player for result slots