Skip to content

Commit

Permalink
add a way to get an empty style
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredlll08 committed Jan 10, 2022
1 parent 3acbf06 commit dde1b0c
Showing 1 changed file with 5 additions and 0 deletions.
Expand Up @@ -14,6 +14,11 @@
@NativeTypeRegistration(value = Style.class, zenCodeName = "crafttweaker.api.text.Style")
public class ExpandStyle {

@ZenCodeType.StaticExpansionMethod
public static Style empty(){
return Style.EMPTY;
}

@ZenCodeType.Method
@ZenCodeType.Nullable
@ZenCodeType.Getter("color")
Expand Down

0 comments on commit dde1b0c

Please sign in to comment.