minecraft-src/net/minecraft/client/gui/screens/worldselection/CreateWorldCallback.java
2025-07-04 02:00:41 +03:00

17 lines
616 B
Java

package net.minecraft.client.gui.screens.worldselection;
import java.nio.file.Path;
import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment;
import net.minecraft.core.LayeredRegistryAccess;
import net.minecraft.server.RegistryLayer;
import net.minecraft.world.level.storage.PrimaryLevelData;
import org.jetbrains.annotations.Nullable;
@FunctionalInterface
@Environment(EnvType.CLIENT)
public interface CreateWorldCallback {
boolean create(
CreateWorldScreen createWorldScreen, LayeredRegistryAccess<RegistryLayer> layeredRegistryAccess, PrimaryLevelData primaryLevelData, @Nullable Path path
);
}