You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Changed the type of comments from Strings to Components. The value of Config#comment is now the name of a method that provides the comment. For example:
- @Config(comment = "This is a comment!")- public static Object exampleComment = null;+ @Config(comment = "exampleCommentMethod")+ public static Object exampleComment = null;+ private static Component exampleCommentMethod() {+ return Component.literal("This is a comment!");+ }
Added two API methods: ModConfig#getDefault and ModConfig#getComment.