add RUDIMENTARY displays
This commit is contained in:
parent
f6b036b517
commit
e18a151f6c
31 changed files with 795 additions and 483 deletions
|
@ -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) {
|
||||
|
|
|
@ -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_)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue