Package net.minecraft.world.gen.feature
Class RandomFeatureEntry
java.lang.Object
net.minecraft.world.gen.feature.RandomFeatureEntry
- Mappings:
Namespace Name official cuointermediary net/minecraft/class_3226named net/minecraft/world/gen/feature/RandomFeatureEntry
-
Field Summary
FieldsModifier and TypeFieldDescriptionfloatstatic com.mojang.serialization.Codec<RandomFeatureEntry>Supplier<ConfiguredFeature<?,?>> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateRandomFeatureEntry(Supplier<ConfiguredFeature<?,?>> feature, float chance)RandomFeatureEntry(ConfiguredFeature<?,?> feature, float chance) -
Method Summary
Modifier and TypeMethodDescriptionbooleangenerate(StructureWorldAccess world, ChunkGenerator chunkGenerator, Random random, BlockPos pos)
-
Field Details
-
CODEC
- Mappings:
Namespace Name Mixin selector official aLcuo;a:Lcom/mojang/serialization/Codec;intermediary field_24864Lnet/minecraft/class_3226;field_24864:Lcom/mojang/serialization/Codec;named CODECLnet/minecraft/world/gen/feature/RandomFeatureEntry;CODEC:Lcom/mojang/serialization/Codec;
-
feature
- Mappings:
Namespace Name Mixin selector official bLcuo;b:Ljava/util/function/Supplier;intermediary field_14013Lnet/minecraft/class_3226;field_14013:Ljava/util/function/Supplier;named featureLnet/minecraft/world/gen/feature/RandomFeatureEntry;feature:Ljava/util/function/Supplier;
-
chance
public final float chance- Mappings:
Namespace Name Mixin selector official cLcuo;c:Fintermediary field_14011Lnet/minecraft/class_3226;field_14011:Fnamed chanceLnet/minecraft/world/gen/feature/RandomFeatureEntry;chance:F
-
-
Constructor Details
-
RandomFeatureEntry
- Mappings:
Namespace Name Mixin selector official <init>Lcuo;<init>(Lcrn;F)Vintermediary <init>Lnet/minecraft/class_3226;<init>(Lnet/minecraft/class_2975;F)Vnamed <init>Lnet/minecraft/world/gen/feature/RandomFeatureEntry;<init>(Lnet/minecraft/world/gen/feature/ConfiguredFeature;F)V
-
RandomFeatureEntry
- Mappings:
Namespace Name Mixin selector official <init>Lcuo;<init>(Ljava/util/function/Supplier;F)Vintermediary <init>Lnet/minecraft/class_3226;<init>(Ljava/util/function/Supplier;F)Vnamed <init>Lnet/minecraft/world/gen/feature/RandomFeatureEntry;<init>(Ljava/util/function/Supplier;F)V
-
-
Method Details
-
generate
public boolean generate(StructureWorldAccess world, ChunkGenerator chunkGenerator, Random random, BlockPos pos)- Mappings:
Namespace Name Mixin selector official aLcuo;a(Lbxk;Lcmn;Ljava/util/Random;Lgg;)Zintermediary method_14271Lnet/minecraft/class_3226;method_14271(Lnet/minecraft/class_5281;Lnet/minecraft/class_2794;Ljava/util/Random;Lnet/minecraft/class_2338;)Znamed generateLnet/minecraft/world/gen/feature/RandomFeatureEntry;generate(Lnet/minecraft/world/StructureWorldAccess;Lnet/minecraft/world/gen/chunk/ChunkGenerator;Ljava/util/Random;Lnet/minecraft/util/math/BlockPos;)Z
-