From f306080b4f0c1342d0bcc25d35ace490cc2b1f0d Mon Sep 17 00:00:00 2001 From: LabyStudio Date: Sat, 1 May 2021 21:04:08 +0200 Subject: [PATCH] update javadoc --- .../serverapi/common/widgets/WidgetLayout.java | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/main/java/net/labymod/serverapi/common/widgets/WidgetLayout.java b/src/main/java/net/labymod/serverapi/common/widgets/WidgetLayout.java index 5bdbc2f..e923ecf 100644 --- a/src/main/java/net/labymod/serverapi/common/widgets/WidgetLayout.java +++ b/src/main/java/net/labymod/serverapi/common/widgets/WidgetLayout.java @@ -25,12 +25,23 @@ public class WidgetLayout { private int borderPaddingY; /** - * + * Default layout */ public WidgetLayout() { } + /** + * Create inventory layout. + * This layout can transform the size, margin and padding of the Minecraft inventory slots + * + * @param slotWidth Slot width + * @param slotHeight Slot height + * @param slotMarginX Left and right space of the slots + * @param slotMarginY Top and bottom space of the slots + * @param borderPaddingX Left and right space between the slots and the background border + * @param borderPaddingY Top and bottom space between the slots and the background border + */ public WidgetLayout(int slotWidth, int slotHeight, int slotMarginX, int slotMarginY, int borderPaddingX, int borderPaddingY) { this.slotWidth = slotWidth; this.slotHeight = slotHeight;