aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/kr/syeyoung/dungeonsguide/roomprocessor
diff options
context:
space:
mode:
authorsyeyoung <cyong06@naver.com>2021-02-10 22:38:29 +0900
committersyeyoung <cyong06@naver.com>2021-02-10 22:38:29 +0900
commited9a5d483335a4d71160a1ff54ad783f971dc016 (patch)
tree87aa19f1a863fb668da0060077e34762fdb62943 /src/main/java/kr/syeyoung/dungeonsguide/roomprocessor
parent8d81f25a74af028357f33c4a44f73fc929ad5338 (diff)
downloadSkyblock-Dungeons-Guide-ed9a5d483335a4d71160a1ff54ad783f971dc016.tar.gz
Skyblock-Dungeons-Guide-ed9a5d483335a4d71160a1ff54ad783f971dc016.tar.bz2
Skyblock-Dungeons-Guide-ed9a5d483335a4d71160a1ff54ad783f971dc016.zip
OK bats go brrr
Diffstat (limited to 'src/main/java/kr/syeyoung/dungeonsguide/roomprocessor')
-rwxr-xr-xsrc/main/java/kr/syeyoung/dungeonsguide/roomprocessor/GeneralRoomProcessor.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/roomprocessor/GeneralRoomProcessor.java b/src/main/java/kr/syeyoung/dungeonsguide/roomprocessor/GeneralRoomProcessor.java
index dc09f46d..6e96788a 100755
--- a/src/main/java/kr/syeyoung/dungeonsguide/roomprocessor/GeneralRoomProcessor.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/roomprocessor/GeneralRoomProcessor.java
@@ -3,6 +3,7 @@ package kr.syeyoung.dungeonsguide.roomprocessor;
import kr.syeyoung.dungeonsguide.SkyblockStatus;
import kr.syeyoung.dungeonsguide.config.Config;
import kr.syeyoung.dungeonsguide.dungeon.DungeonContext;
+import kr.syeyoung.dungeonsguide.dungeon.EntitySpawnManager;
import kr.syeyoung.dungeonsguide.dungeon.actions.tree.ActionRoute;
import kr.syeyoung.dungeonsguide.dungeon.mechanics.DungeonMechanic;
import kr.syeyoung.dungeonsguide.dungeon.roomfinder.DungeonRoom;
@@ -15,6 +16,7 @@ import lombok.Getter;
import lombok.Setter;
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.FontRenderer;
+import net.minecraft.client.gui.ScaledResolution;
import net.minecraft.entity.Entity;
import net.minecraft.entity.item.EntityArmorStand;
import net.minecraft.util.BlockPos;
@@ -56,6 +58,14 @@ public class GeneralRoomProcessor implements RoomProcessor {
5, i * 8 + 13, 0xFF00FF00);
}
}
+
+
+ Entity en = Minecraft.getMinecraft().objectMouseOver.entityHit;
+ if (en == null) return;;
+ ScaledResolution sr = new ScaledResolution(Minecraft.getMinecraft());
+ if (EntitySpawnManager.getSpawnLocation().containsKey(en.getEntityId())) {
+ fr.drawString("Spawned at "+EntitySpawnManager.getSpawnLocation().get(en.getEntityId()), sr.getScaledWidth() / 2, sr.getScaledHeight() / 2, 0xFFFFFFFF);
+ }
}
@Override