aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-04-20 14:17:03 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-04-20 14:17:03 +0200
commit93a043f0f9c763f6a36de7e02ba57077f615a5a9 (patch)
treeef5d3b467ce4efbdbbf76500a7e2c53c20b5652f
parent9ff22629d90c7a11776ee37ba2019c1ff0714043 (diff)
downloadskyhanni-93a043f0f9c763f6a36de7e02ba57077f615a5a9.tar.gz
skyhanni-93a043f0f9c763f6a36de7e02ba57077f615a5a9.tar.bz2
skyhanni-93a043f0f9c763f6a36de7e02ba57077f615a5a9.zip
Added loggers for enderman slayer beacon detections
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/slayer/EndermanSlayerBeacon.kt6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/slayer/EndermanSlayerBeacon.kt b/src/main/java/at/hannibal2/skyhanni/features/slayer/EndermanSlayerBeacon.kt
index 996f46ee4..970a7f1dc 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/slayer/EndermanSlayerBeacon.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/slayer/EndermanSlayerBeacon.kt
@@ -26,6 +26,7 @@ class EndermanSlayerBeacon {
private val endermenWithBeacons = mutableListOf<EntityEnderman>()
private val flyingBeacons = mutableListOf<EntityArmorStand>()
private val sittingBeacon = mutableListOf<LorenzVec>()
+ private val logger = LorenzLogger("slayer/voildgloom_beacon")
@SubscribeEvent
fun onCheckRender(event: CheckRenderEntityEvent<*>) {
@@ -35,6 +36,7 @@ class EndermanSlayerBeacon {
if (entity is EntityEnderman) {
if (hasBeaconInHand(entity) && canSee(LocationUtils.playerEyeLocation(), entity.getLorenzVec())) {
endermenWithBeacons.add(entity)
+ logger.log("Added enderman with beacon at ${entity.getLorenzVec()}")
}
}
@@ -42,6 +44,7 @@ class EndermanSlayerBeacon {
val stack = entity.inventory[4] ?: return
if (stack.name == "Beacon" && canSee(LocationUtils.playerEyeLocation(), entity.getLorenzVec())) {
flyingBeacons.add(entity)
+ logger.log("Added flying beacons at ${entity.getLorenzVec()}")
}
}
}
@@ -90,9 +93,11 @@ class EndermanSlayerBeacon {
if (armorStand != null) {
flyingBeacons.remove(armorStand)
sittingBeacon.add(location)
+ logger.log("Replaced flying beacon with sitting beacon at $location")
}
} else {
if (location in sittingBeacon) {
+ logger.log("Removed sitting beacon $location")
sittingBeacon.remove(location)
}
}
@@ -113,5 +118,6 @@ class EndermanSlayerBeacon {
endermenWithBeacons.clear()
flyingBeacons.clear()
sittingBeacon.clear()
+ logger.log("Reset everything (world change)")
}
} \ No newline at end of file