Skip to content

Release 2.4.0

Choose a tag to compare

@xpple xpple released this 15 Jun 16:06
· 14 commits to master since this release
  • 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.
  • Updated to Minecraft 1.21.6.