Skip to content
This repository was archived by the owner on Jun 19, 2024. It is now read-only.

Commit f306080

Browse files
committed
update javadoc
1 parent 73594ff commit f306080

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

src/main/java/net/labymod/serverapi/common/widgets/WidgetLayout.java

+12-1
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,23 @@ public class WidgetLayout {
2525
private int borderPaddingY;
2626

2727
/**
28-
*
28+
* Default layout
2929
*/
3030
public WidgetLayout() {
3131

3232
}
3333

34+
/**
35+
* Create inventory layout.
36+
* This layout can transform the size, margin and padding of the Minecraft inventory slots
37+
*
38+
* @param slotWidth Slot width
39+
* @param slotHeight Slot height
40+
* @param slotMarginX Left and right space of the slots
41+
* @param slotMarginY Top and bottom space of the slots
42+
* @param borderPaddingX Left and right space between the slots and the background border
43+
* @param borderPaddingY Top and bottom space between the slots and the background border
44+
*/
3445
public WidgetLayout(int slotWidth, int slotHeight, int slotMarginX, int slotMarginY, int borderPaddingX, int borderPaddingY) {
3546
this.slotWidth = slotWidth;
3647
this.slotHeight = slotHeight;

0 commit comments

Comments
 (0)