Skip to content

Commit

Permalink
Scoreboard: Add missing @jvmoverloads
Browse files Browse the repository at this point in the history
  • Loading branch information
mattco98 committed Dec 20, 2023
1 parent 9797778 commit 1b79ef4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions api/ctjs.api
Original file line number Diff line number Diff line change
Expand Up @@ -2331,8 +2331,10 @@ public final class com/chattriggers/ctjs/api/world/Scoreboard {
public static final fun getTitle ()Lcom/chattriggers/ctjs/api/message/TextComponent;
public static final fun setLine (ILcom/chattriggers/ctjs/api/message/TextComponent;)V
public static final fun setLine (ILcom/chattriggers/ctjs/api/message/TextComponent;Z)V
public static final fun setLine (ILjava/lang/String;)V
public static final fun setLine (ILjava/lang/String;Z)V
public static synthetic fun setLine$default (ILcom/chattriggers/ctjs/api/message/TextComponent;ZILjava/lang/Object;)V
public static synthetic fun setLine$default (ILjava/lang/String;ZILjava/lang/Object;)V
public static final fun setShouldRender (Z)V
public static final fun setTitle (Lcom/chattriggers/ctjs/api/message/TextComponent;)V
public static final fun setTitle (Ljava/lang/String;)V
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,8 @@ object Scoreboard {
}

@JvmStatic
fun setLine(score: Int, line: String, override: Boolean) = setLine(score, TextComponent(line), override)
@JvmOverloads
fun setLine(score: Int, line: String, override: Boolean = false) = setLine(score, TextComponent(line), override)

@JvmStatic
fun setShouldRender(shouldRender: Boolean) {
Expand Down

0 comments on commit 1b79ef4

Please sign in to comment.