Package net.minecraft.world.gen.feature
Class RandomFeatureEntry<FC extends FeatureConfig>
java.lang.Object
net.minecraft.world.gen.feature.RandomFeatureEntry<FC>
public class RandomFeatureEntry<FC extends FeatureConfig> extends Object
-
Field Summary
Fields Modifier and Type Field Description floatchancestatic com.mojang.serialization.Codec<RandomFeatureEntry<?>>CODECConfiguredFeature<FC,?>feature -
Constructor Summary
Constructors Constructor Description RandomFeatureEntry(ConfiguredFeature<FC,?> feature, float chance) -
Method Summary
Modifier and Type Method Description booleangenerate(ServerWorldAccess serverWorldAccess, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockPos blockPos)
-
Field Details
-
Constructor Details
-
Method Details
-
generate
public boolean generate(ServerWorldAccess serverWorldAccess, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockPos blockPos)
-