net.minecraft.world.gen.feature

public record WeightedRandomFeature

implements Feature

net.minecraft.world.level.levelgen.feature.WeightedRandomSelectorFeature
net.minecraft.world.level.levelgen.feature.WeightedRandomSelectorFeature
net.minecraft.class_1_902
net.minecraft.world.gen.feature.WeightedRandomFeature

Field summary

Modifier and TypeField
private final WeightedPool<RegistryEntry<PlacedFeature>>
features
features
comp_1_1155
features
public static final com.mojang.serialization.MapCodec<WeightedRandomFeature>
CODEC
CODEC
field_1_7911
CODEC

Constructor summary

ModifierConstructor
public (WeightedPool<RegistryEntry<PlacedFeature>> features)

Method summary

Modifier and TypeMethod
public com.mojang.serialization.MapCodec<WeightedRandomFeature>
codec()
codec()
method_1_6879()
getCodec()
public Stream<RegistryEntry<Feature>>
getSubFeatures()
getSubFeatures()
method_1_6880()
getDecoratedFeatures()
public boolean
place(WorldGenLevel level, ChunkGenerator chunkGenerator, RandomSource random, BlockPos origin)
place(WorldGenLevel level, ChunkGenerator chunkGenerator, RandomSource random, BlockPos origin)
method_13151(class_5281 arg0, class_2794 arg1, class_5819 arg2, class_2338 arg3)
generate(StructureWorldAccess arg0, ChunkGenerator arg1, Random arg2, BlockPos arg3)
public WeightedPool<RegistryEntry<PlacedFeature>>
features()
features()
comp_1_1155()
features()