Skip to content

Commit a9b2195

Browse files
committed
fixed missed java-doc
1 parent 4bd6490 commit a9b2195

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

Item Creator/src/main/java/org/broken/arrow/library/itemcreator/meta/map/font/customdraw/MapTextRenderer.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,11 @@ private void drawPixelsOffset(CharacterSprite sprite, int startX, int startY, Co
127127
* <p>
128128
* Spigot 1.20+ uses {@link MapCanvas#setPixelColor(int, int, java.awt.Color)},
129129
* older versions use {@link MapPalette#matchColor(Color)}.
130+
*
131+
* @param canvas the target map canvas to draw on
132+
* @param x location where draw in digonal direction.
133+
* @param y location where draw in vertical direction.
134+
* @param color the color to set for the pixel
130135
*/
131136
private void setMapPixel(MapCanvas canvas, int x, int y, Color color) {
132137
if (ItemCreator.getServerVersion() < 20.0F) {
@@ -140,6 +145,7 @@ private void setMapPixel(MapCanvas canvas, int x, int y, Color color) {
140145
* Creates a slightly darker version of the given color. Used for shadow rendering.
141146
*
142147
* @param color the current color you want to be darker.
148+
* @return return a darker tone of your color.
143149
*/
144150
private Color darker(Color color) {
145151
return new Color(

Item Creator/src/main/java/org/broken/arrow/library/itemcreator/meta/map/font/customdraw/RenderState.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ public class RenderState {
2020
* <li>{@code r} = reset styles + white</li>
2121
* <li>Otherwise = color code</li>
2222
* </ul>
23+
*
24+
* @param code the color code to check for.
2325
*/
2426
public void applyFormattingCode(char code) {
2527
switch (code) {
@@ -50,7 +52,8 @@ public boolean hasStyle(MapTextRenderer.TextStyle textStyle) {
5052
}
5153

5254
/**
53-
* Returns the color currently used for glyph drawing.
55+
*
56+
* @return Returns the color currently used for glyph drawing.
5457
*/
5558
public Color getCurrentColor() {
5659
return currentColor;
@@ -70,6 +73,7 @@ public void setCurrentColor(@Nullable final Color decode) {
7073
* Does not handle formatting (bold, shadow), only RGB color.
7174
*
7275
* @param code the color code for vanillas minecraft.
76+
* @return returns the color or null if not a valid Minecraft color code.
7377
*/
7478
@Nullable
7579
public Color translateChatColor(char code) {

0 commit comments

Comments
 (0)