From 096672b3c1e82795f8cbb53bc0a6eb4ed8060088 Mon Sep 17 00:00:00 2001 From: EvilSeph Date: Fri, 16 Sep 2011 22:24:09 -0400 Subject: [PATCH] Added toString overrides to new Craft entities. --- .../java/org/bukkit/craftbukkit/entity/CraftCaveSpider.java | 5 +++++ .../java/org/bukkit/craftbukkit/entity/CraftEnderman.java | 5 +++++ .../java/org/bukkit/craftbukkit/entity/CraftSilverfish.java | 5 +++++ 3 files changed, 15 insertions(+) diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftCaveSpider.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftCaveSpider.java index 6822e52e9a..5f3bfe94ab 100644 --- a/src/main/java/org/bukkit/craftbukkit/entity/CraftCaveSpider.java +++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftCaveSpider.java @@ -13,4 +13,9 @@ public class CraftCaveSpider extends CraftSpider implements CaveSpider { public EntityCaveSpider getHandle() { return (EntityCaveSpider) super.getHandle(); } + + @Override + public String toString() { + return "CraftCaveSpider"; + } } diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftEnderman.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftEnderman.java index b68a524dd0..ac680b15ae 100644 --- a/src/main/java/org/bukkit/craftbukkit/entity/CraftEnderman.java +++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftEnderman.java @@ -13,4 +13,9 @@ public class CraftEnderman extends CraftMonster implements Enderman { public EntityEnderman getHandle() { return (EntityEnderman) super.getHandle(); } + + @Override + public String toString() { + return "CraftEnderman"; + } } diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftSilverfish.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftSilverfish.java index 8f6d3c23d5..8296feaef7 100644 --- a/src/main/java/org/bukkit/craftbukkit/entity/CraftSilverfish.java +++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftSilverfish.java @@ -13,4 +13,9 @@ public class CraftSilverfish extends CraftMonster implements Silverfish { public EntitySilverfish getHandle() { return (EntitySilverfish) super.getHandle(); } + + @Override + public String toString() { + return "CraftSilverfish"; + } }