SPIGOT-3976: Add some additional toStrings to CraftEntity classes

This commit is contained in:
md_5 2018-06-27 20:27:52 +10:00
parent fbe3046435
commit 6103339c08
5 changed files with 25 additions and 0 deletions

View File

@ -33,6 +33,11 @@ public class CraftAreaEffectCloud extends CraftEntity implements AreaEffectCloud
return (EntityAreaEffectCloud) super.getHandle();
}
@Override
public String toString() {
return "CraftAreaEffectCloud";
}
@Override
public EntityType getType() {
return EntityType.AREA_EFFECT_CLOUD;

View File

@ -10,6 +10,11 @@ public class CraftDragonFireball extends CraftFireball implements DragonFireball
super(server, entity);
}
@Override
public String toString() {
return "CraftDragonFireball";
}
@Override
public EntityType getType() {
return EntityType.DRAGON_FIREBALL;

View File

@ -43,6 +43,11 @@ public class CraftMinecartCommand extends CraftMinecart implements CommandMineca
getHandle().getCommandBlock().setName(name != null ? name : "@");
}
@Override
public String toString() {
return "CraftMinecartCommand";
}
@Override
public EntityType getType() {
return EntityType.MINECART_COMMAND;

View File

@ -13,6 +13,11 @@ public class CraftShulker extends CraftGolem implements Shulker {
super(server, entity);
}
@Override
public String toString() {
return "CraftShulker";
}
@Override
public EntityType getType() {
return EntityType.SHULKER;

View File

@ -38,6 +38,11 @@ public class CraftShulkerBullet extends AbstractProjectile implements ShulkerBul
getHandle().setTarget(target == null ? null : ((CraftEntity) target).getHandle());
}
@Override
public String toString() {
return "CraftShulkerBullet";
}
@Override
public EntityType getType() {
return EntityType.SHULKER_BULLET;