From 64ca0ef5190f8f9bb53bfcd5fa3ce021c5e121f7 Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Wed, 29 Dec 2010 00:29:18 +0000 Subject: [PATCH] Add some .toString()s By: Dinnerbone --- paper-server/src/org/bukkit/craftbukkit/CraftBlock.java | 5 +++++ paper-server/src/org/bukkit/craftbukkit/CraftChunk.java | 5 +++++ paper-server/src/org/bukkit/craftbukkit/CraftPlayer.java | 5 +++++ 3 files changed, 15 insertions(+) diff --git a/paper-server/src/org/bukkit/craftbukkit/CraftBlock.java b/paper-server/src/org/bukkit/craftbukkit/CraftBlock.java index 5d86556417..8da650899b 100644 --- a/paper-server/src/org/bukkit/craftbukkit/CraftBlock.java +++ b/paper-server/src/org/bukkit/craftbukkit/CraftBlock.java @@ -124,4 +124,9 @@ public class CraftBlock implements Block { public Block getRelative(final int modX, final int modY, final int modZ) { return getWorld().getBlockAt(getX() + modX, getY() + modY, getZ() + modZ); } + + @Override + public String toString() { + return "CraftBlock{" + "world=" + world + "x=" + x + "y=" + y + "z=" + z + "type=" + type + "data=" + data + '}'; + } } diff --git a/paper-server/src/org/bukkit/craftbukkit/CraftChunk.java b/paper-server/src/org/bukkit/craftbukkit/CraftChunk.java index 2fe28212ce..003ee0f464 100644 --- a/paper-server/src/org/bukkit/craftbukkit/CraftChunk.java +++ b/paper-server/src/org/bukkit/craftbukkit/CraftChunk.java @@ -29,4 +29,9 @@ public class CraftChunk implements Chunk { public int getZ() { return z; } + + @Override + public String toString() { + return "CraftChunk{" + "x=" + x + "z=" + z + '}'; + } } diff --git a/paper-server/src/org/bukkit/craftbukkit/CraftPlayer.java b/paper-server/src/org/bukkit/craftbukkit/CraftPlayer.java index 2f0c66110d..b347c11d96 100644 --- a/paper-server/src/org/bukkit/craftbukkit/CraftPlayer.java +++ b/paper-server/src/org/bukkit/craftbukkit/CraftPlayer.java @@ -36,4 +36,9 @@ public class CraftPlayer implements Player { public EntityPlayerMP getEntity() { return player; } + + @Override + public String toString() { + return "CraftPlayer{" + "name=" + name + '}'; + } }