Class LevelStorageSourceMixin
java.lang.Object
de.luckymcdev.foundryengine.mixin.level.LevelStorageSourceMixin
- All Implemented Interfaces:
EngineInterface<net.minecraft.world.level.storage.LevelStorageSource>, EngineLevelStorageSource
Implements
EngineLevelStorageSource on LevelStorageSource to support additional paths and instanced worlds.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidengine$addAdditionalPath(Path path) Registers an additional search path for world storage.voidClears all registered additional storage paths.voidClears all instanced world data.voidengine$deleteInstance(String levelId) Deletes the instanced copy of the given level ID.Returns all registered additional storage paths.booleanengine$isInstanced(String levelId) Checks whether the given level ID is instanced.booleanengine$isWorldExternal(String levelId) Checks whether the given level ID refers to an external world.booleanRemoves a registered additional storage path.engine$resolveWorldPath(String levelId) Resolves the world path for a given level ID, checking additional paths first.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface EngineInterface
engine$self
-
Constructor Details
-
LevelStorageSourceMixin
public LevelStorageSourceMixin()
-
-
Method Details
-
engine$addAdditionalPath
Registers an additional search path for world storage.- Specified by:
engine$addAdditionalPathin interfaceEngineLevelStorageSource
-
engine$getAdditionalPaths
Returns all registered additional storage paths.- Specified by:
engine$getAdditionalPathsin interfaceEngineLevelStorageSource
-
engine$removeAdditionalPath
Removes a registered additional storage path.- Specified by:
engine$removeAdditionalPathin interfaceEngineLevelStorageSource
-
engine$clearAdditionalPaths
public void engine$clearAdditionalPaths()Clears all registered additional storage paths.- Specified by:
engine$clearAdditionalPathsin interfaceEngineLevelStorageSource
-
engine$resolveWorldPath
Resolves the world path for a given level ID, checking additional paths first.- Specified by:
engine$resolveWorldPathin interfaceEngineLevelStorageSource
-
engine$isWorldExternal
Checks whether the given level ID refers to an external world.- Specified by:
engine$isWorldExternalin interfaceEngineLevelStorageSource
-
engine$isInstanced
Checks whether the given level ID is instanced.- Specified by:
engine$isInstancedin interfaceEngineLevelStorageSource
-
engine$deleteInstance
Deletes the instanced copy of the given level ID.- Specified by:
engine$deleteInstancein interfaceEngineLevelStorageSource
-
engine$clearInstanced
public void engine$clearInstanced()Clears all instanced world data.- Specified by:
engine$clearInstancedin interfaceEngineLevelStorageSource
-