public override void SpawnEntity() { NameTag = string.Empty; Block.Coordinates = new BlockCoordinates(KnownPosition); TextEntity = new PlayerMob(NameTag, Level) { NameTag = Text, KnownPosition = KnownPosition, Width = 0, IsInvisible = true, Gravity = 0, Height = 0, HideNameTag = false }; if (Player != null) { TextEntity.SpawnToPlayers(new Player[] { Player }); } if (BlockEntity == null) { if (Block is Air) { base.SpawnEntity(); //TextEntity.EntityId = (EntityId + 1); Level.EntityManager.AddEntity(null, TextEntity); NpcEvents.Npcs.Add(EntityId, this); return; } NpcEvents.Npcs.Add(EntityId, this); Level.SetBlock(Block); } Block = BlockEntity.GetBlock(); NpcEvents.Npcs.Add(EntityId, this); BlockEntity.Coordinates = Block.Coordinates; Level.SetBlockEntity(BlockEntity); Level.SetBlock(Block); }