aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/Danker/utils
diff options
context:
space:
mode:
authorbowser0000 <bowser0000@gmail.com>2020-10-09 10:54:39 -0400
committerbowser0000 <bowser0000@gmail.com>2020-10-09 10:54:39 -0400
commit68111a9d9c9d403436dc2041010f337580d48d60 (patch)
treefa66b56133e317b08f60c4e84d556c3ec70e1f98 /src/main/java/me/Danker/utils
parent5d477d9d06933c7a52ea5df17160b89391387872 (diff)
downloadSkyblockMod-68111a9d9c9d403436dc2041010f337580d48d60.tar.gz
SkyblockMod-68111a9d9c9d403436dc2041010f337580d48d60.tar.bz2
SkyblockMod-68111a9d9c9d403436dc2041010f337580d48d60.zip
Add GUI: /dsm
No GUI for moving or scaling displays yet
Diffstat (limited to 'src/main/java/me/Danker/utils')
-rw-r--r--src/main/java/me/Danker/utils/Utils.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/java/me/Danker/utils/Utils.java b/src/main/java/me/Danker/utils/Utils.java
index ae9f08b..ba01071 100644
--- a/src/main/java/me/Danker/utils/Utils.java
+++ b/src/main/java/me/Danker/utils/Utils.java
@@ -18,6 +18,7 @@ import net.minecraft.entity.item.EntityItem;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.scoreboard.ScoreObjective;
import net.minecraft.util.AxisAlignedBB;
+import net.minecraft.util.EnumChatFormatting;
import net.minecraft.util.StringUtils;
public class Utils {
@@ -223,4 +224,8 @@ public class Utils {
return 0;
}
+ public static String getColouredBoolean(boolean bool) {
+ return bool ? EnumChatFormatting.GREEN + "On" : EnumChatFormatting.RED + "Off";
+ }
+
}