Class PlacementUtils
java.lang.Object
net.minecraft.data.worldgen.placement.PlacementUtils
-
Field Summary
Modifier and TypeFieldDescriptionstatic final PlacementModifier
static final PlacementModifier
static final PlacementModifier
static final PlacementModifier
static final PlacementModifier
static final PlacementModifier
static final PlacementModifier
static final PlacementModifier
static final PlacementModifier
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
bootstrap
(BootstapContext<PlacedFeature> p_255779_) static PlacementModifier
countExtra
(int p_195365_, float p_195366_, int p_195367_) static ResourceKey<PlacedFeature>
static <FC extends FeatureConfiguration,
F extends Feature<FC>>
Holder<PlacedFeature>filtered
(F p_206499_, FC p_206500_, BlockPredicate p_206501_) static BlockPredicateFilter
filteredByBlockSurvival
(Block p_206494_) static <FC extends FeatureConfiguration,
F extends Feature<FC>>
Holder<PlacedFeature>inlinePlaced
(F p_206503_, FC p_206504_, PlacementModifier... p_206505_) static Holder<PlacedFeature>
inlinePlaced
(Holder<ConfiguredFeature<?, ?>> p_206507_, PlacementModifier... p_206508_) static PlacementFilter
isEmpty()
static <FC extends FeatureConfiguration,
F extends Feature<FC>>
Holder<PlacedFeature>onlyWhenEmpty
(F p_206496_, FC p_206497_) static void
register
(BootstapContext<PlacedFeature> p_255872_, ResourceKey<PlacedFeature> p_255820_, Holder<ConfiguredFeature<?, ?>> p_255813_, List<PlacementModifier> p_256042_) static void
register
(BootstapContext<PlacedFeature> p_256241_, ResourceKey<PlacedFeature> p_256614_, Holder<ConfiguredFeature<?, ?>> p_255855_, PlacementModifier... p_256413_)
-
Field Details
-
HEIGHTMAP
-
HEIGHTMAP_TOP_SOLID
-
HEIGHTMAP_WORLD_SURFACE
-
HEIGHTMAP_OCEAN_FLOOR
-
FULL_RANGE
-
RANGE_10_10
-
RANGE_8_8
-
RANGE_4_4
-
RANGE_BOTTOM_TO_MAX_TERRAIN_HEIGHT
-
-
Constructor Details
-
PlacementUtils
public PlacementUtils()
-
-
Method Details
-
bootstrap
-
createKey
-
register
public static void register(BootstapContext<PlacedFeature> p_255872_, ResourceKey<PlacedFeature> p_255820_, Holder<ConfiguredFeature<?, ?>> p_255813_, List<PlacementModifier> p_256042_) -
register
public static void register(BootstapContext<PlacedFeature> p_256241_, ResourceKey<PlacedFeature> p_256614_, Holder<ConfiguredFeature<?, ?>> p_255855_, PlacementModifier... p_256413_) -
countExtra
-
isEmpty
-
filteredByBlockSurvival
-
inlinePlaced
public static Holder<PlacedFeature> inlinePlaced(Holder<ConfiguredFeature<?, ?>> p_206507_, PlacementModifier... p_206508_) -
inlinePlaced
public static <FC extends FeatureConfiguration,F extends Feature<FC>> Holder<PlacedFeature> inlinePlaced(F p_206503_, FC p_206504_, PlacementModifier... p_206505_) -
onlyWhenEmpty
public static <FC extends FeatureConfiguration,F extends Feature<FC>> Holder<PlacedFeature> onlyWhenEmpty(F p_206496_, FC p_206497_) -
filtered
public static <FC extends FeatureConfiguration,F extends Feature<FC>> Holder<PlacedFeature> filtered(F p_206499_, FC p_206500_, BlockPredicate p_206501_)
-