Class FeatureUtils
java.lang.Object
net.minecraft.data.worldgen.features.FeatureUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidbootstrap(BootstrapContext<ConfiguredFeature<?, ?>> context) static ResourceKey<ConfiguredFeature<?, ?>> static <FC extends FeatureConfiguration, F extends Feature<FC>>
voidregister(BootstrapContext<ConfiguredFeature<?, ?>> context, ResourceKey<ConfiguredFeature<?, ?>> id, F feature, FC config) static voidregister(BootstrapContext<ConfiguredFeature<?, ?>> context, ResourceKey<ConfiguredFeature<?, ?>> id, 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> allowedOn) static <FC extends FeatureConfiguration, F extends Feature<FC>>
RandomPatchConfigurationsimplePatchConfiguration(F feature, FC config, List<Block> allowedOn, int tries) private static BlockPredicatesimplePatchPredicate(List<Block> allowedOn) static RandomPatchConfigurationsimpleRandomPatchConfiguration(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> allowedOn, int tries) -
simplePatchConfiguration
public static <FC extends FeatureConfiguration, F extends Feature<FC>> RandomPatchConfiguration simplePatchConfiguration(F feature, FC config, List<Block> allowedOn) -
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<?, ?>> id, Feature<NoneFeatureConfiguration> feature) -
register
public static <FC extends FeatureConfiguration, F extends Feature<FC>> void register(BootstrapContext<ConfiguredFeature<?, ?>> context, ResourceKey<ConfiguredFeature<?, ?>> id, F feature, FC config)
-