| 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 |
|