question: @ NotNull public List < PlayerNbt > createSingleplayerPlayerNbts ( ) { Log . i ( "using player from level.dat" ) ; return Arrays . asList ( createLevelDatPlayerNbt ( ) ) ; }
target:  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.