Class FeatureUtils
java.lang.Object
net.minecraft.data.worldgen.features.FeatureUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
bootstrap
(BootstrapContext<ConfiguredFeature<?, ?>> context) static ResourceKey
<ConfiguredFeature<?, ?>> static <FC extends FeatureConfiguration,
F extends Feature<FC>>
voidregister
(BootstrapContext<ConfiguredFeature<?, ?>> context, ResourceKey<ConfiguredFeature<?, ?>> key, F feature, FC config) static void
register
(BootstrapContext<ConfiguredFeature<?, ?>> context, ResourceKey<ConfiguredFeature<?, ?>> key, Feature<NoneFeatureConfiguration> feature) static <FC extends FeatureConfiguration,
F extends Feature<FC>>
RandomPatchConfigurationsimplePatchConfiguration
(F feature, FC config) static <FC extends FeatureConfiguration,
F extends Feature<FC>>
RandomPatchConfigurationsimplePatchConfiguration
(F feature, FC config, List<Block> blocks) static <FC extends FeatureConfiguration,
F extends Feature<FC>>
RandomPatchConfigurationsimplePatchConfiguration
(F feature, FC config, List<Block> blocks, int tries) private static BlockPredicate
simplePatchPredicate
(List<Block> blocks) static RandomPatchConfiguration
simpleRandomPatchConfiguration
(int tries, Holder<PlacedFeature> feature)
-
Constructor Details
-
FeatureUtils
public FeatureUtils()
-
-
Method Details
-
bootstrap
-
simplePatchPredicate
-
simpleRandomPatchConfiguration
public static RandomPatchConfiguration simpleRandomPatchConfiguration(int tries, Holder<PlacedFeature> feature) -
simplePatchConfiguration
public static <FC extends FeatureConfiguration,F extends Feature<FC>> RandomPatchConfiguration simplePatchConfiguration(F feature, FC config, List<Block> blocks, int tries) -
simplePatchConfiguration
public static <FC extends FeatureConfiguration,F extends Feature<FC>> RandomPatchConfiguration simplePatchConfiguration(F feature, FC config, List<Block> blocks) -
simplePatchConfiguration
public static <FC extends FeatureConfiguration,F extends Feature<FC>> RandomPatchConfiguration simplePatchConfiguration(F feature, FC config) -
createKey
-
register
public static void register(BootstrapContext<ConfiguredFeature<?, ?>> context, ResourceKey<ConfiguredFeature<?, ?>> key, Feature<NoneFeatureConfiguration> feature) -
register
public static <FC extends FeatureConfiguration,F extends Feature<FC>> void register(BootstrapContext<ConfiguredFeature<?, ?>> context, ResourceKey<ConfiguredFeature<?, ?>> key, F feature, FC config)
-