@NotNull public List<PlayerNbt> createSingleplayerPlayerNbts(){
  Log.i("using player from level.dat");
  return Arrays.asList(createLevelDatPlayerNbt());
}

@ NotNull public List < PlayerNbt > createSingleplayerPlayerNbts ( ) { Log . i ( "using player from level.dat" ) ; return Arrays . asList ( createLevelDatPlayerNbt ( ) ) ; }
we need to let the user decide if he wants to load the singleplayer player from the level . dat file or if he wants to load the multiplayer players . that is , because a singleplayer map will have the playerdata directory . it contains information about each player that ever played on the map . however , if the map is loaded as singleplayer map , minecraft will use the information that is stored in the level . dat file . it will also overwrite the file in the playerdata directory that belongs to the player that loaded the map in singleplayer mode . so , if we change the player location in the playerdata directory it will just be ignored if the map is used as singleplayer map .
