Class StructurePoolFeatureConfig

java.lang.Object
net.minecraft.world.gen.feature.StructurePoolFeatureConfig
All Implemented Interfaces:
FeatureConfig

public class StructurePoolFeatureConfig
extends Object
implements FeatureConfig
A feature config that specifies a starting pool and a size for net.minecraft.structure.pool.StructurePoolBasedGenerator#method_30419(net.minecraft.util.registry.DynamicRegistryManager, net.minecraft.world.gen.feature.StructurePoolFeatureConfig, net.minecraft.structure.pool.StructurePoolBasedGenerator.PieceFactory, net.minecraft.world.gen.chunk.ChunkGenerator, net.minecraft.structure.StructureManager, net.minecraft.util.math.BlockPos, java.util.List, java.util.Random, boolean, boolean).
Mappings:
Namespace Name
official cro
intermediary net/minecraft/class_3812
named net/minecraft/world/gen/feature/StructurePoolFeatureConfig
  • Field Details

    • CODEC

      public static final com.mojang.serialization.Codec<StructurePoolFeatureConfig> CODEC
      Mappings:
      Namespace Name Mixin selector
      official a Lcro;a:Lcom/mojang/serialization/Codec;
      intermediary field_24886 Lnet/minecraft/class_3812;field_24886:Lcom/mojang/serialization/Codec;
      named CODEC Lnet/minecraft/world/gen/feature/StructurePoolFeatureConfig;CODEC:Lcom/mojang/serialization/Codec;
    • startPool

      private final Supplier<StructurePool> startPool
      Mappings:
      Namespace Name Mixin selector
      official b Lcro;b:Ljava/util/function/Supplier;
      intermediary field_16861 Lnet/minecraft/class_3812;field_16861:Ljava/util/function/Supplier;
      named startPool Lnet/minecraft/world/gen/feature/StructurePoolFeatureConfig;startPool:Ljava/util/function/Supplier;
    • size

      private final int size
      Mappings:
      Namespace Name Mixin selector
      official c Lcro;c:I
      intermediary field_16860 Lnet/minecraft/class_3812;field_16860:I
      named size Lnet/minecraft/world/gen/feature/StructurePoolFeatureConfig;size:I
  • Constructor Details

    • StructurePoolFeatureConfig

      public StructurePoolFeatureConfig​(Supplier<StructurePool> startPool, int size)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcro;<init>(Ljava/util/function/Supplier;I)V
      intermediary <init> Lnet/minecraft/class_3812;<init>(Ljava/util/function/Supplier;I)V
      named <init> Lnet/minecraft/world/gen/feature/StructurePoolFeatureConfig;<init>(Ljava/util/function/Supplier;I)V
  • Method Details

    • getSize

      public int getSize()
      Mappings:
      Namespace Name Mixin selector
      official b Lcro;b()I
      intermediary method_27222 Lnet/minecraft/class_3812;method_27222()I
      named getSize Lnet/minecraft/world/gen/feature/StructurePoolFeatureConfig;getSize()I
    • getStartPool

      public Supplier<StructurePool> getStartPool()
      Mappings:
      Namespace Name Mixin selector
      official c Lcro;c()Ljava/util/function/Supplier;
      intermediary method_27223 Lnet/minecraft/class_3812;method_27223()Ljava/util/function/Supplier;
      named getStartPool Lnet/minecraft/world/gen/feature/StructurePoolFeatureConfig;getStartPool()Ljava/util/function/Supplier;