CreateWorldCallback .java

net.minecraft.client.gui.screens.worldselection.CreateWorldCallback (interface, 24 lines): members: createWorldScreen, finalLayers, gameRules, create.

net.minecraft.client.gui.screens.worldselectioninterface24 linesclient780 B

API Surface (0)

No public/protected methods detected (fields or constants only).

Fields & Constants (4)

createWorldScreen
finalLayers
worldDataAndGenSettings
gameRules

Code Graph: Dependencies (6)

Edges (calls / imports / inherits / references) resolved by graphify from the AST. Every chip opens the class source.

Full Source

CreateWorldCallback.java24 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.client.gui.screens.worldselection;
2
3
import java.nio.file.Path;
4
import java.util.Optional;
5
import net.fabricmc.api.EnvType;
6
import net.fabricmc.api.Environment;
7
import net.minecraft.core.LayeredRegistryAccess;
8
import net.minecraft.server.RegistryLayer;
9
import net.minecraft.world.level.gamerules.GameRules;
10
import net.minecraft.world.level.storage.LevelDataAndDimensions.WorldDataAndGenSettings;
11
import org.jspecify.annotations.Nullable;
12
13
@FunctionalInterface
14
@Environment(EnvType.CLIENT)
15
public interface CreateWorldCallback {
16
	boolean create(
17
		CreateWorldScreen createWorldScreen,
18
		LayeredRegistryAccess<RegistryLayer> finalLayers,
19
		WorldDataAndGenSettings worldDataAndGenSettings,
20
		Optional<GameRules> gameRules,
21
		@Nullable Path tempDataPackDir
22
	);
23
}
24

Decompiled Minecraft 26.3 source of CreateWorldCallback (net/minecraft/client/gui/screens/worldselection/CreateWorldCallback.java) with Mojang official mappings, stored verbatim on the site.