Added getWorldPath to World API (#12952)

This commit is contained in:
David
2025-08-15 22:39:09 +02:00
committed by GitHub
parent a743e6b1c7
commit a22447a555
2 changed files with 15 additions and 3 deletions
+12 -1
View File
@@ -2,6 +2,7 @@ package org.bukkit;
import io.papermc.paper.raytracing.PositionedRayTraceConfigurationBuilder;
import java.io.File;
import java.nio.file.Path;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
@@ -2867,7 +2868,17 @@ public interface World extends RegionAccessor, WorldInfo, PluginMessageRecipient
* @return The folder of this world.
*/
@NotNull
public File getWorldFolder();
default File getWorldFolder() {
return getWorldPath().toFile();
}
/**
* Gets the path of this world on disk.
*
* @return The path of this world.
*/
@NotNull
Path getWorldPath();
/**
* Gets the type of this world.