diff options
author | md_5 <git@md-5.net> | 2018-06-27 20:27:52 +1000 |
---|---|---|
committer | md_5 <git@md-5.net> | 2018-06-27 20:27:52 +1000 |
commit | 6103339c08455f72e25a9a10f87bbe5fa4a35f3a (patch) | |
tree | e1f89163a20aef5c58656f504c330501c6115464 | |
parent | fbe3046435815a1423bf4a287ad9ec914c91bb55 (diff) | |
download | craftbukkit-6103339c08455f72e25a9a10f87bbe5fa4a35f3a.tar craftbukkit-6103339c08455f72e25a9a10f87bbe5fa4a35f3a.tar.gz craftbukkit-6103339c08455f72e25a9a10f87bbe5fa4a35f3a.tar.lz craftbukkit-6103339c08455f72e25a9a10f87bbe5fa4a35f3a.tar.xz craftbukkit-6103339c08455f72e25a9a10f87bbe5fa4a35f3a.zip |
SPIGOT-3976: Add some additional toStrings to CraftEntity classes
5 files changed, 25 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftAreaEffectCloud.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftAreaEffectCloud.java index 577ea29a..555119a4 100644 --- a/src/main/java/org/bukkit/craftbukkit/entity/CraftAreaEffectCloud.java +++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftAreaEffectCloud.java @@ -34,6 +34,11 @@ public class CraftAreaEffectCloud extends CraftEntity implements AreaEffectCloud } @Override + public String toString() { + return "CraftAreaEffectCloud"; + } + + @Override public EntityType getType() { return EntityType.AREA_EFFECT_CLOUD; } diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftDragonFireball.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftDragonFireball.java index f1fa649b..4a48b16d 100644 --- a/src/main/java/org/bukkit/craftbukkit/entity/CraftDragonFireball.java +++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftDragonFireball.java @@ -11,6 +11,11 @@ public class CraftDragonFireball extends CraftFireball implements DragonFireball } @Override + public String toString() { + return "CraftDragonFireball"; + } + + @Override public EntityType getType() { return EntityType.DRAGON_FIREBALL; } diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftMinecartCommand.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftMinecartCommand.java index 38176750..58f3cf78 100644 --- a/src/main/java/org/bukkit/craftbukkit/entity/CraftMinecartCommand.java +++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftMinecartCommand.java @@ -44,6 +44,11 @@ public class CraftMinecartCommand extends CraftMinecart implements CommandMineca } @Override + public String toString() { + return "CraftMinecartCommand"; + } + + @Override public EntityType getType() { return EntityType.MINECART_COMMAND; } diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftShulker.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftShulker.java index 72f99fdc..80bfa1bc 100644 --- a/src/main/java/org/bukkit/craftbukkit/entity/CraftShulker.java +++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftShulker.java @@ -14,6 +14,11 @@ public class CraftShulker extends CraftGolem implements Shulker { } @Override + public String toString() { + return "CraftShulker"; + } + + @Override public EntityType getType() { return EntityType.SHULKER; } diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftShulkerBullet.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftShulkerBullet.java index 53876d51..8fbdedc8 100644 --- a/src/main/java/org/bukkit/craftbukkit/entity/CraftShulkerBullet.java +++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftShulkerBullet.java @@ -39,6 +39,11 @@ public class CraftShulkerBullet extends AbstractProjectile implements ShulkerBul } @Override + public String toString() { + return "CraftShulkerBullet"; + } + + @Override public EntityType getType() { return EntityType.SHULKER_BULLET; } |