Class RandomFeatureEntry

java.lang.Object
net.minecraft.world.gen.feature.RandomFeatureEntry

public class RandomFeatureEntry extends Object
Mappings:
Namespace Name
official cuo
intermediary net/minecraft/class_3226
named net/minecraft/world/gen/feature/RandomFeatureEntry
  • Field Details

    • CODEC

      public static final com.mojang.serialization.Codec<RandomFeatureEntry> CODEC
      Mappings:
      Namespace Name Mixin selector
      official a Lcuo;a:Lcom/mojang/serialization/Codec;
      intermediary field_24864 Lnet/minecraft/class_3226;field_24864:Lcom/mojang/serialization/Codec;
      named CODEC Lnet/minecraft/world/gen/feature/RandomFeatureEntry;CODEC:Lcom/mojang/serialization/Codec;
    • feature

      public final Supplier<ConfiguredFeature<?,​?>> feature
      Mappings:
      Namespace Name Mixin selector
      official b Lcuo;b:Ljava/util/function/Supplier;
      intermediary field_14013 Lnet/minecraft/class_3226;field_14013:Ljava/util/function/Supplier;
      named feature Lnet/minecraft/world/gen/feature/RandomFeatureEntry;feature:Ljava/util/function/Supplier;
    • chance

      public final float chance
      Mappings:
      Namespace Name Mixin selector
      official c Lcuo;c:F
      intermediary field_14011 Lnet/minecraft/class_3226;field_14011:F
      named chance Lnet/minecraft/world/gen/feature/RandomFeatureEntry;chance:F
  • Constructor Details

    • RandomFeatureEntry

      public RandomFeatureEntry(ConfiguredFeature<?,​?> feature, float chance)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcuo;<init>(Lcrn;F)V
      intermediary <init> Lnet/minecraft/class_3226;<init>(Lnet/minecraft/class_2975;F)V
      named <init> Lnet/minecraft/world/gen/feature/RandomFeatureEntry;<init>(Lnet/minecraft/world/gen/feature/ConfiguredFeature;F)V
    • RandomFeatureEntry

      private RandomFeatureEntry(Supplier<ConfiguredFeature<?,​?>> feature, float chance)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcuo;<init>(Ljava/util/function/Supplier;F)V
      intermediary <init> Lnet/minecraft/class_3226;<init>(Ljava/util/function/Supplier;F)V
      named <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 a Lcuo;a(Lbxk;Lcmn;Ljava/util/Random;Lgg;)Z
      intermediary method_14271 Lnet/minecraft/class_3226;method_14271(Lnet/minecraft/class_5281;Lnet/minecraft/class_2794;Ljava/util/Random;Lnet/minecraft/class_2338;)Z
      named generate Lnet/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