add RUDIMENTARY displays

This commit is contained in:
Sen 2025-07-06 13:20:13 +02:00
parent f6b036b517
commit e18a151f6c
Signed by: sen
GPG key ID: 3AC50A6F47D1B722
31 changed files with 795 additions and 483 deletions

View file

@ -858,7 +858,7 @@ public final class Server implements IThreadListener, Executor {
world = world == null ? this.space : world;
}
EntityNPC nplayer = conn.createPlayer(world, EntityRegistry.getEntityString(old));
conn.clonePlayer(old);
conn.copyPlayer(old);
nplayer.setId(old.getId());
nplayer.setOrigin(origin);
if(bed != null) {

View file

@ -458,7 +458,7 @@ public class Player extends User implements ICrafting, Executor, IPlayer
this.lastHealth = -1.0E8F;
}
public void clonePlayer(EntityNPC oldPlayer)
public void copyPlayer(EntityNPC oldPlayer)
{
this.lastExperience = -1;
this.lastHealth = -1.0F;
@ -473,6 +473,10 @@ public class Player extends User implements ICrafting, Executor, IPlayer
this.entity.setHeight(oldPlayer.getHeight());
this.entity.setCustomNameTag(oldPlayer.getCustomNameTag());
this.entity.setAlignment(oldPlayer.getAlignment());
this.entity.setAttackDamageBase(oldPlayer.getAttackDamageBase());
this.entity.setSpeedBase(oldPlayer.getSpeedBase());
this.entity.setMaxHealth(oldPlayer.getMaxHealth());
this.entity.setMaxMana(oldPlayer.getMaxMana());
}
public void removeEntity(Entity p_152339_1_)