world module¶
-
class
api.world.World(directory, root_tag, wrapper)[source]¶ Bases:
objectClass that handles world editing of any world format via an separate and flexible data format
-
class
api.world.WorldFormat[source]¶ Bases:
objectBase class for World objects
-
classmethod
from_unified_format(unified)[source]¶ Converts the passed object to the specific implementation
Parameters: unified ( World) – The object to convertReturn object: The result of the conversion, None if not successful Return type: WorldFormat
-
classmethod
load(directory, definitions)[source]¶ Loads the Minecraft world contained in the given directory with the supplied definitions
Parameters: - directory (
str) – The directory of the world to load - definitions – The definitions to load the world with
Return type: Returns: The loaded world in a World object
- directory (
-
classmethod