Class RandomFeatureEntry

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

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

    • CODEC

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

      public final RegistryEntry<PlacedFeature> feature
      Mappings:
      Namespace Name Mixin selector
      named feature Lnet/minecraft/world/gen/feature/RandomFeatureEntry;feature:Lnet/minecraft/registry/entry/RegistryEntry;
      intermediary field_14013 Lnet/minecraft/class_3226;field_14013:Lnet/minecraft/class_6880;
      official b Lecu;b:Lji;
    • chance

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

    • RandomFeatureEntry

      public RandomFeatureEntry(RegistryEntry<PlacedFeature> feature, float chance)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/world/gen/feature/RandomFeatureEntry;<init>(Lnet/minecraft/registry/entry/RegistryEntry;F)V
      intermediary <init> Lnet/minecraft/class_3226;<init>(Lnet/minecraft/class_6880;F)V
      official <init> Lecu;<init>(Lji;F)V
  • Method Details

    • generate

      public boolean generate(StructureWorldAccess world, ChunkGenerator chunkGenerator, Random random, BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      named generate Lnet/minecraft/world/gen/feature/RandomFeatureEntry;generate(Lnet/minecraft/world/StructureWorldAccess;Lnet/minecraft/world/gen/chunk/ChunkGenerator;Lnet/minecraft/util/math/random/Random;Lnet/minecraft/util/math/BlockPos;)Z
      intermediary method_14271 Lnet/minecraft/class_3226;method_14271(Lnet/minecraft/class_5281;Lnet/minecraft/class_2794;Lnet/minecraft/class_5819;Lnet/minecraft/class_2338;)Z
      official a Lecu;a(Ldcv;Ldub;Lazh;Liz;)Z