2020-04-02 21:07:06 +00:00
|
|
|
From e696b3bbb9dc087f0f1613c525656648bbd624a6 Mon Sep 17 00:00:00 2001
|
2018-07-21 20:43:00 +00:00
|
|
|
From: Aikar <aikar@aikar.co>
|
|
|
|
Date: Thu, 19 Jul 2018 01:13:28 -0400
|
|
|
|
Subject: [PATCH] add more information to Entity.toString()
|
|
|
|
|
|
|
|
UUID, ticks lived, valid, dead
|
|
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/Entity.java b/src/main/java/net/minecraft/server/Entity.java
|
2020-04-02 04:43:11 +00:00
|
|
|
index 1de1a10cf0..dce1e2af62 100644
|
2018-07-21 20:43:00 +00:00
|
|
|
--- a/src/main/java/net/minecraft/server/Entity.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/Entity.java
|
2020-04-02 04:43:11 +00:00
|
|
|
@@ -2503,7 +2503,7 @@ public abstract class Entity implements INamableTileEntity, ICommandListener, Ke
|
2018-07-21 20:43:00 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public String toString() {
|
2019-12-11 23:43:22 +00:00
|
|
|
- return String.format(Locale.ROOT, "%s['%s'/%d, l='%s', x=%.2f, y=%.2f, z=%.2f]", this.getClass().getSimpleName(), this.getDisplayName().getText(), this.id, this.world == null ? "~NULL~" : this.world.getWorldData().getName(), this.locX(), this.locY(), this.locZ());
|
2018-07-24 04:48:07 +00:00
|
|
|
+ return String.format(Locale.ROOT, "%s[\'%s\'/%d, uuid=\'%s\', l=\'%s\', x=%.2f, y=%.2f, z=%.2f, cx=%d, cz=%d, tl=%d, v=%b, d=%b]", new Object[] { this.getClass().getSimpleName(), this.getDisplayName().getText(), 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-21 20:43:00 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public boolean isInvulnerable(DamageSource damagesource) {
|
|
|
|
--
|
2020-03-15 20:03:36 +00:00
|
|
|
2.25.1
|
2018-07-21 20:43:00 +00:00
|
|
|
|