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 Holder<PlacedFeature>
static PlacementModifier
countExtra
(int p_195365_, float p_195366_, int p_195367_) 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<? extends 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 Holder<PlacedFeature>
register
(String p_206510_, Holder<? extends ConfiguredFeature<?, ?>> p_206511_, List<PlacementModifier> p_206512_) static Holder<PlacedFeature>
register
(String p_206514_, Holder<? extends ConfiguredFeature<?, ?>> p_206515_, PlacementModifier... p_206516_)
-
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
-
register
public static Holder<PlacedFeature> register(String p_206510_, Holder<? extends ConfiguredFeature<?, ?>> p_206511_, List<PlacementModifier> p_206512_) -
register
public static Holder<PlacedFeature> register(String p_206514_, Holder<? extends ConfiguredFeature<?, ?>> p_206515_, PlacementModifier... p_206516_) -
countExtra
-
isEmpty
-
filteredByBlockSurvival
-
inlinePlaced
public static Holder<PlacedFeature> inlinePlaced(Holder<? extends 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_)
-