EndFeatures .java

net.minecraft.data.worldgen.features.EndFeatures (class): members: END_GATEWAY_DELAYED, END_PODIUM_INACTIVE, END_PODIUM_ACTIVE, END_ISLAND, END_PLATFORM.

net.minecraft.data.worldgen.featuresclass37 linescommon2.2 KB

API Surface (1)

void bootstrap(final BootstrapContext<Feature> context)

Fields & Constants (8)

END_PLATFORM
END_PODIUM_ACTIVE
END_PODIUM_INACTIVE
END_SPIKE
END_GATEWAY_RETURN
END_GATEWAY_DELAYED
CHORUS_PLANT
END_ISLAND

String literals (8)

"end_platform"
"end_podium_active"
"end_podium_inactive"
"end_spike"
"end_gateway_return"
"end_gateway_delayed"
"chorus_plant"
"end_island"

Full Source

EndFeatures.java37 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.data.worldgen.features;
2
3
import java.util.List;
4
import java.util.Optional;
5
import net.minecraft.data.worldgen.BootstrapContext;
6
import net.minecraft.resources.ResourceKey;
7
import net.minecraft.server.level.ServerLevel;
8
import net.minecraft.world.level.levelgen.feature.ChorusPlantFeature;
9
import net.minecraft.world.level.levelgen.feature.EndGatewayFeature;
10
import net.minecraft.world.level.levelgen.feature.EndIslandFeature;
11
import net.minecraft.world.level.levelgen.feature.EndPlatformFeature;
12
import net.minecraft.world.level.levelgen.feature.EndPodiumFeature;
13
import net.minecraft.world.level.levelgen.feature.EndSpikeFeature;
14
import net.minecraft.world.level.levelgen.feature.Feature;
15
16
public class EndFeatures {
17
	public static final ResourceKey<Feature> END_PLATFORM = FeatureUtils.createKey("end_platform");
18
	public static final ResourceKey<Feature> END_PODIUM_ACTIVE = FeatureUtils.createKey("end_podium_active");
19
	public static final ResourceKey<Feature> END_PODIUM_INACTIVE = FeatureUtils.createKey("end_podium_inactive");
20
	public static final ResourceKey<Feature> END_SPIKE = FeatureUtils.createKey("end_spike");
21
	public static final ResourceKey<Feature> END_GATEWAY_RETURN = FeatureUtils.createKey("end_gateway_return");
22
	public static final ResourceKey<Feature> END_GATEWAY_DELAYED = FeatureUtils.createKey("end_gateway_delayed");
23
	public static final ResourceKey<Feature> CHORUS_PLANT = FeatureUtils.createKey("chorus_plant");
24
	public static final ResourceKey<Feature> END_ISLAND = FeatureUtils.createKey("end_island");
25
26
	public static void bootstrap(final BootstrapContext<Feature> context) {
27
		context.register(END_PLATFORM, new EndPlatformFeature());
28
		context.register(END_PODIUM_ACTIVE, new EndPodiumFeature(true));
29
		context.register(END_PODIUM_INACTIVE, new EndPodiumFeature(false));
30
		context.register(END_SPIKE, new EndSpikeFeature(List.of(), false, Optional.empty()));
31
		context.register(END_GATEWAY_RETURN, EndGatewayFeature.knownExit(ServerLevel.END_SPAWN_POINT, true));
32
		context.register(END_GATEWAY_DELAYED, EndGatewayFeature.delayedExitSearch());
33
		context.register(CHORUS_PLANT, new ChorusPlantFeature());
34
		context.register(END_ISLAND, new EndIslandFeature());
35
	}
36
}
37

Decompiled Minecraft 26.3 source of EndFeatures (net/minecraft/data/worldgen/features/EndFeatures.java) with Mojang official mappings, stored verbatim on the site.