world_loader module¶
-
class
api.world_loader.
_WorldLoader
[source]¶ Bases:
object
Class responsible for loading worlds
-
get_loaded_identifiers
()[source]¶ List all format loader identifiers
Return type: List
[str
]Returns: List of all format identifiers
-
identify
(directory)[source]¶ Identifies the level format the world is in and the versions definitions that match the world. Note: Since Minecraft Java versions below 1.12 lack version identifiers, they will always be loaded with 1.12 definitions.
Parameters: directory ( str
) – The directory of the worldReturn type: Tuple
[str
,str
]Returns: The version definitions name for the world and the format loader that would be used
-