mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-10 04:41:42 +01:00
SPIGOT-3976: Add some additional toStrings to CraftEntity classes
This commit is contained in:
parent
fbe3046435
commit
6103339c08
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user