aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/kr/syeyoung/dungeonsguide/DungeonsGuide.java
diff options
context:
space:
mode:
authorsyeyoung <42869671+cyoung06@users.noreply.github.com>2020-11-28 00:20:43 +0900
committersyeyoung <42869671+cyoung06@users.noreply.github.com>2020-11-28 00:20:43 +0900
commit2a4d8f550661a510ec4abbeabdc7b6fcb03322a5 (patch)
tree73fdf2e907109f880f567fdcac0b2f59e9ace37e /src/main/java/kr/syeyoung/dungeonsguide/DungeonsGuide.java
parentf74de0c58aa3be0d0aa17c2a1f8b942ae2a6d5c8 (diff)
downloadSkyblock-Dungeons-Guide-2a4d8f550661a510ec4abbeabdc7b6fcb03322a5.tar.gz
Skyblock-Dungeons-Guide-2a4d8f550661a510ec4abbeabdc7b6fcb03322a5.tar.bz2
Skyblock-Dungeons-Guide-2a4d8f550661a510ec4abbeabdc7b6fcb03322a5.zip
DEBUG Command
Diffstat (limited to 'src/main/java/kr/syeyoung/dungeonsguide/DungeonsGuide.java')
-rw-r--r--src/main/java/kr/syeyoung/dungeonsguide/DungeonsGuide.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/DungeonsGuide.java b/src/main/java/kr/syeyoung/dungeonsguide/DungeonsGuide.java
index daf1c00f..459c963a 100644
--- a/src/main/java/kr/syeyoung/dungeonsguide/DungeonsGuide.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/DungeonsGuide.java
@@ -5,7 +5,9 @@ import kr.syeyoung.dungeonsguide.commands.CommandLoadData;
import kr.syeyoung.dungeonsguide.commands.CommandSaveData;
import kr.syeyoung.dungeonsguide.dungeon.roomfinder.DungeonRoomInfoRegistry;
import lombok.Getter;
+import net.minecraft.client.Minecraft;
import net.minecraft.init.Blocks;
+import net.minecraft.util.IChatComponent;
import net.minecraftforge.client.ClientCommandHandler;
import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.fml.common.Mod;
@@ -25,6 +27,13 @@ public class DungeonsGuide
private static DungeonsGuide dungeonsGuide;
+ public static boolean DEBUG = false;
+
+ public static void sendDebugChat(IChatComponent iChatComponent) {
+ if (DEBUG)
+ Minecraft.getMinecraft().thePlayer.addChatMessage(iChatComponent);
+ }
+
@EventHandler
public void init(FMLInitializationEvent event)
{