diff options
| author | DeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com> | 2021-08-30 10:55:25 +0200 |
|---|---|---|
| committer | DeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com> | 2021-08-30 10:55:25 +0200 |
| commit | 60f942503864ac897484f7dd31a21c1cb03a04a2 (patch) | |
| tree | 6fc0f2e0041031090a78d356f6973249f6a659d5 /src/main/java/io/github/moulberry/notenoughupdates/util/Utils.java | |
| parent | 8e43f9f23835e802b5caea2585db8a50a6408fbb (diff) | |
| parent | 90ad79d106fd36f50edaf8a2bed6c4ee0210050d (diff) | |
| download | notenoughupdates-60f942503864ac897484f7dd31a21c1cb03a04a2.tar.gz notenoughupdates-60f942503864ac897484f7dd31a21c1cb03a04a2.tar.bz2 notenoughupdates-60f942503864ac897484f7dd31a21c1cb03a04a2.zip | |
Merge remote-tracking branch 'dokm/master'
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/util/Utils.java')
| -rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/util/Utils.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/util/Utils.java b/src/main/java/io/github/moulberry/notenoughupdates/util/Utils.java index 3e84261c..7f1c20d3 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/util/Utils.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/util/Utils.java @@ -1045,6 +1045,11 @@ public class Utils { style.setChatHoverEvent(new HoverEvent(HoverEvent.Action.SHOW_TEXT, new ChatComponentText(EnumChatFormatting.YELLOW+value))); return style; } + public static ChatStyle createClickStyle(ClickEvent.Action action, String value, String message) { + ChatStyle style = createClickStyle(action, value); + style.setChatHoverEvent(new HoverEvent(HoverEvent.Action.SHOW_TEXT, new ChatComponentText(message))); + return style; + } public static void recursiveDelete(File file) { if(file.isDirectory() && !Files.isSymbolicLink(file.toPath())) { |
