Class WeightedConfiguredFeature
java.lang.Object
net.minecraft.world.level.levelgen.feature.WeightedConfiguredFeature
-
Field Summary
Modifier and TypeFieldDescriptionfloat
static com.mojang.serialization.Codec<WeightedConfiguredFeature>
Supplier<ConfiguredFeature<?,?>>
-
Constructor Summary
ModifierConstructorDescriptionprivate
WeightedConfiguredFeature(Supplier<ConfiguredFeature<?,?>> p_67411_, float p_67412_)
WeightedConfiguredFeature(ConfiguredFeature<?,?> p_67408_, float p_67409_)
-
Method Summary
Modifier and TypeMethodDescriptionboolean
place(WorldGenLevel p_67414_, ChunkGenerator p_67415_, Random p_67416_, BlockPos p_67417_)
-
Field Details
-
CODEC
-
feature
-
chance
public final float chance
-
-
Constructor Details
-
WeightedConfiguredFeature
-
WeightedConfiguredFeature
-
-
Method Details
-
place
public boolean place(WorldGenLevel p_67414_, ChunkGenerator p_67415_, Random p_67416_, BlockPos p_67417_)
-