geforkt von Mirrors/Paper
SPIGOT-3976: Add some additional toStrings to CraftEntity classes
By: md_5 <git@md-5.net>
Dieser Commit ist enthalten in:
Ursprung
0e8e610b0e
Commit
2458ceb0f8
@ -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;
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren