Skip to content

Commit

Permalink
Change some doc comments
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcusElg committed Aug 8, 2024
1 parent 072447b commit bdf2175
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public boolean getDrawShadows() {
}

/**
* Sets whether shadows should be drawn for this labbel.
* Sets whether shadows should be drawn for this label.
*
* @param drawShadows {@code true} if shadows should be drawn, {@code false} otherwise
* @return this label
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ public boolean getDrawShadows() {
}

/**
* Sets whether shadows should be drawn for this labbel.
* Sets whether shadows should be drawn for this label.
*
* @param drawShadows {@code true} if shadows should be drawn, {@code false} otherwise
* @return this label
Expand Down
20 changes: 10 additions & 10 deletions src/main/java/io/github/cottonmc/cotton/gui/widget/WText.java
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ public InputResult onClick(int x, int y, int button) {
}

/**
* Gets the text of this label.
* Gets the text of this text widget.
*
* @return the text
*/
Expand All @@ -137,10 +137,10 @@ public Text getText() {
}

/**
* Sets the text of this label.
* Sets the text of this text widget.
*
* @param text the new text
* @return this label
* @return this text widget
*/
public WText setText(Text text) {
Objects.requireNonNull(text, "text is null");
Expand All @@ -151,7 +151,7 @@ public WText setText(Text text) {
}

/**
* Gets the light mode color of this label.
* Gets the light mode color of this text widget.
*
* @return the color
*/
Expand All @@ -160,7 +160,7 @@ public int getColor() {
}

/**
* Sets the light mode color of this label.
* Sets the light mode color of this text widget.
*
* @param color the new color
* @return this text widget
Expand All @@ -171,7 +171,7 @@ public WText setColor(int color) {
}

/**
* Gets the dark mode color of this label.
* Gets the dark mode color of this text widget.
*
* @return the color
* @since 2.0.0
Expand All @@ -181,7 +181,7 @@ public int getDarkmodeColor() {
}

/**
* Sets the dark mode color of this label.
* Sets the dark mode color of this text widget.
*
* @param darkmodeColor the new color
* @return this text widget
Expand All @@ -192,7 +192,7 @@ public WText setDarkmodeColor(int darkmodeColor) {
}

/**
* Sets the light and dark mode colors of this label.
* Sets the light and dark mode colors of this text widget.
*
* @param color the new light color
* @param darkmodeColor the new dark color
Expand All @@ -205,7 +205,7 @@ public WText setColor(int color, int darkmodeColor) {
}

/**
* Checks whether shadows should be drawn for this label.
* Checks whether shadows should be drawn for this text widget.
*
* @return {@code true} shadows should be drawn, {@code false} otherwise
* @since 11.1.0
Expand All @@ -218,7 +218,7 @@ public boolean getDrawShadows() {
* Sets whether shadows should be drawn for this labbel.
*
* @param drawShadows {@code true} if shadows should be drawn, {@code false} otherwise
* @return this label
* @return this text widget
* @since 11.1.0
*/
public WText setDrawShadows(boolean drawShadows) {
Expand Down

0 comments on commit bdf2175

Please sign in to comment.