2018-07-21 18:46:56 +00:00
|
|
|
From b0c9be521fc1613e6ab93cbc058b8fbf2de7068a Mon Sep 17 00:00:00 2001
|
2018-07-19 05:13:53 +00:00
|
|
|
From: Aikar <aikar@aikar.co>
|
|
|
|
Date: Thu, 19 Jul 2018 01:13:28 -0400
|
2018-07-21 14:29:37 +00:00
|
|
|
Subject: [PATCH] add more information to Entity.toString()
|
2018-07-19 05:13:53 +00:00
|
|
|
|
2018-07-21 14:29:37 +00:00
|
|
|
UUID, ticks lived, valid, dead
|
2018-07-19 05:13:53 +00:00
|
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/Entity.java b/src/main/java/net/minecraft/server/Entity.java
|
2018-07-21 18:46:56 +00:00
|
|
|
index 80ecdb282..99dac412f 100644
|
2018-07-19 05:13:53 +00:00
|
|
|
--- a/src/main/java/net/minecraft/server/Entity.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/Entity.java
|
2018-07-21 14:29:37 +00:00
|
|
|
@@ -2361,7 +2361,7 @@ public abstract class Entity implements ICommandListener, KeyedObject { // Paper
|
2018-07-19 05:13:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public String toString() {
|
|
|
|
- return String.format("%s[\'%s\'/%d, l=\'%s\', x=%.2f, y=%.2f, z=%.2f]", new Object[] { this.getClass().getSimpleName(), this.getName(), Integer.valueOf(this.id), this.world == null ? "~NULL~" : this.world.getWorldData().getName(), Double.valueOf(this.locX), Double.valueOf(this.locY), Double.valueOf(this.locZ)});
|
2018-07-21 18:46:56 +00:00
|
|
|
+ return String.format("%s[\'%s\'/%d, uuid=\'%s\', l=\'%s\', x=%.2f, y=%.2f, z=%.2f, cx=%d, cd=%d, tl=%d, v=%b, d=%b]", new Object[] { this.getClass().getSimpleName(), this.getName(), Integer.valueOf(this.id), this.uniqueID.toString(), this.world == null ? "~NULL~" : this.world.getWorldData().getName(), Double.valueOf(this.locX), Double.valueOf(this.locY), Double.valueOf(this.locZ), getChunkX(), getChunkZ(), this.ticksLived, this.valid, this.dead}); // Paper - add more information
|
2018-07-19 05:13:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public boolean isInvulnerable(DamageSource damagesource) {
|
|
|
|
--
|
|
|
|
2.18.0
|
|
|
|
|