Skip to content

Commit

Permalink
🎨 global
Browse files Browse the repository at this point in the history
  • Loading branch information
kitUIN committed Dec 2, 2024
1 parent 78d9211 commit bf773b6
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 305 deletions.
6 changes: 6 additions & 0 deletions .idea/ModAliasState.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package io.github.kituin.chatimage.tool;


public class SimpleUtil {

public static #MutableComponent# createTranslatableComponent(String text) {
return #Component#.translatable(text);
}

public static #MutableComponent# createTranslatableComponent(String key, Object... args) {
return #Component#.translatable(key, args);
}

public static #MutableComponent# createLiteralComponent(String text) {
return #Component#.literal(text);
}

public static #MutableComponent# composeGenericOptionComponent(#Component# text, #Component# value) {
return net.minecraft.network.chat.CommonComponents.optionNameValue(text, value);
}
}
Loading

0 comments on commit bf773b6

Please sign in to comment.