aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io/github/moulberry/notenoughupdates/util/Utils.java
diff options
context:
space:
mode:
authorDoKM <mcazzyman@gmail.com>2021-08-29 16:13:49 +0200
committerDoKM <mcazzyman@gmail.com>2021-08-29 16:13:49 +0200
commit5ff913b685316c23317193cfeb30ae51f1a47f1d (patch)
tree11877a81b4f4a310e3cb6418361a0f22e6818aae /src/main/java/io/github/moulberry/notenoughupdates/util/Utils.java
parentb9525a3419d695ce8b10e8da76ba61c0c6be54e2 (diff)
downloadnotenoughupdates-5ff913b685316c23317193cfeb30ae51f1a47f1d.tar.gz
notenoughupdates-5ff913b685316c23317193cfeb30ae51f1a47f1d.tar.bz2
notenoughupdates-5ff913b685316c23317193cfeb30ae51f1a47f1d.zip
Add Replace Social options chat with PV
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.java5
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())) {