Skip to content

Commit b157e3a

Browse files
📝 Add docstrings to New-GUIs
Docstrings generation was requested by @AnyaPizza. * #20 (comment) The following files were modified: * `src/main/java/com/tcm/MineTale/block/workbenches/menu/AbstractWorkbenchContainerMenu.java`
1 parent 0835d2a commit b157e3a

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

‎src/main/java/com/tcm/MineTale/block/workbenches/menu/AbstractWorkbenchContainerMenu.java‎

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,12 @@ public abstract class AbstractWorkbenchContainerMenu extends AbstractContainerMe
2121
private final ContainerData data;
2222

2323
/**
24-
* Creates a workbench container menu backed by the given inventory and sync data, sets up slots
25-
* (fuel slot, two inputs, four result slots) and binds player inventory/hotbar and data for progress syncing.
24+
* 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.
2625
*
27-
* @param menuType the menu type (may be null for dynamic registration)
26+
* @param menuType the menu type; may be null for dynamic registration
2827
* @param syncId the window synchronization id
29-
* @param container the underlying container inventory for the workbench
30-
* @param data the container data used to synchronize cook and burn progress
28+
* @param container the underlying workbench inventory
29+
* @param data container data used to synchronize cook and burn progress
3130
* @param containerSize expected size of {@code container}; validated by this constructor
3231
* @param containerDataSize expected size of {@code data}; validated by this constructor
3332
* @param playerInventory the player's inventory used to add player slots and to identify the player for result slots

0 commit comments

Comments
 (0)