Update to 1.18-pre1

This commit is contained in:
shedaniel
2021-11-14 02:30:22 +08:00
parent e3fb2e577d
commit 52d3bad6f8
5 changed files with 14 additions and 12 deletions

View File

@@ -29,6 +29,7 @@ import net.minecraft.world.level.biome.BiomeSpecialEffects.GrassColorModifier;
import net.minecraft.world.level.levelgen.GenerationStep;
import net.minecraft.world.level.levelgen.carver.ConfiguredWorldCarver;
import net.minecraft.world.level.levelgen.feature.ConfiguredFeature;
import net.minecraft.world.level.levelgen.placement.PlacedFeature;
import org.jetbrains.annotations.Nullable;
import java.util.List;
@@ -362,7 +363,7 @@ public final class BiomeHooks {
}
@Override
public List<List<Supplier<ConfiguredFeature<?, ?>>>> getFeatures() {
public List<List<Supplier<PlacedFeature>>> getFeatures() {
return settings.features();
}
}

View File

@@ -23,6 +23,7 @@ import net.minecraft.world.level.levelgen.GenerationStep;
import net.minecraft.world.level.levelgen.carver.ConfiguredWorldCarver;
import net.minecraft.world.level.levelgen.feature.ConfiguredFeature;
import net.minecraft.world.level.levelgen.feature.ConfiguredStructureFeature;
import net.minecraft.world.level.levelgen.placement.PlacedFeature;
import java.util.List;
import java.util.function.Supplier;
@@ -30,7 +31,7 @@ import java.util.function.Supplier;
public interface GenerationProperties {
List<Supplier<ConfiguredWorldCarver<?>>> getCarvers(GenerationStep.Carving carving);
List<List<Supplier<ConfiguredFeature<?, ?>>>> getFeatures();
List<List<Supplier<PlacedFeature>>> getFeatures();
interface Mutable extends GenerationProperties {
Mutable addFeature(GenerationStep.Decoration decoration, ConfiguredFeature<?, ?> feature);