aboutsummaryrefslogtreecommitdiffhomepage
path: root/Spigot-Server-Patches/0288-add-more-information-to-Entity.toString.patch
diff options
context:
space:
mode:
Diffstat (limited to 'Spigot-Server-Patches/0288-add-more-information-to-Entity.toString.patch')
-rw-r--r--Spigot-Server-Patches/0288-add-more-information-to-Entity.toString.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/Spigot-Server-Patches/0288-add-more-information-to-Entity.toString.patch b/Spigot-Server-Patches/0288-add-more-information-to-Entity.toString.patch
new file mode 100644
index 0000000000..0d70d60c64
--- /dev/null
+++ b/Spigot-Server-Patches/0288-add-more-information-to-Entity.toString.patch
@@ -0,0 +1,23 @@
+From 2f51486373507742b96ba70777b50ad07388317c Mon Sep 17 00:00:00 2001
+From: Aikar <[email protected]>
+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
+index debab1a715..69a058d830 100644
+--- a/src/main/java/net/minecraft/server/Entity.java
++++ b/src/main/java/net/minecraft/server/Entity.java
+@@ -2514,7 +2514,7 @@ public abstract class Entity implements INamableTileEntity, ICommandListener, Ke
+ }
+
+ public String toString() {
+- 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);
++ 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
+ }
+
+ public boolean isInvulnerable(DamageSource damagesource) {
+--
+2.21.0
+