net.minecraft.structure.pool

public class StructurePool

net.minecraft.world.level.levelgen.structure.pools.StructureTemplatePool
net.minecraft.class_3785
net.minecraft.structure.pool.StructurePool

Field summary

Modifier and TypeField
private static final int
SIZE_UNSET
field_31523
DEFAULT_Y
private static final org.apache.commons.lang3.mutable.MutableObject<com.mojang.serialization.Codec<RegistryEntry<StructurePool>>>
CODEC_REFERENCE
field_40925
FALLBACK
public static final com.mojang.serialization.Codec<StructurePool>
DIRECT_CODEC
field_25853
CODEC
public static final com.mojang.serialization.Codec<RegistryEntry<StructurePool>>
CODEC
field_24954
REGISTRY_CODEC
private final List<com.mojang.datafixers.util.Pair<StructurePoolElement, Integer>>
rawTemplates
field_16864
elementWeights
private final it.unimi.dsi.fastutil.objects.ObjectArrayList<StructurePoolElement>
templates
field_16680
elements
private final RegistryEntry<StructurePool>
fallback
field_40926
fallback
private int
maxSize
field_18707
highestY

Constructor summary

ModifierConstructor
public (RegistryEntry<StructurePool> fallback, List<com.mojang.datafixers.util.Pair<StructurePoolElement, Integer>> elementWeights)
public (RegistryEntry<StructurePool> fallback, List<com.mojang.datafixers.util.Pair<Function<StructurePool$Projection, ? extends StructurePoolElement>, Integer>> elementWeightsByGetters, StructurePool$Projection projection)

Method summary

Modifier and TypeMethod
public int
getMaxSize(StructureTemplateManager manager)
method_19309(class_3485 arg0)
getHighestY(StructureTemplateManager structureTemplateManager)
public List<com.mojang.datafixers.util.Pair<StructurePoolElement, Integer>>
getTemplates()
method_67690()
getElementWeights()
public RegistryEntry<StructurePool>
getFallback()
method_46736()
getFallback()
public StructurePoolElement
getRandomTemplate(RandomSource random)
method_16631(class_5819 arg0)
getRandomElement(Random random)
public List<StructurePoolElement>
getShuffledTemplates(RandomSource random)
method_16633(class_5819 arg0)
getElementIndicesInRandomOrder(Random random)
public int
size()
method_16632()
getElementCount()
private static int
lambda$getMaxSize$3(StructureTemplateManager arg0, StructurePoolElement arg1)
method_19310(class_3485 arg0, class_3784 arg1)
method_19310(StructureTemplateManager arg0, StructurePoolElement element)
private static boolean
lambda$getMaxSize$2(StructurePoolElement arg0)
method_35372(class_3784 arg0)
method_35372(StructurePoolElement element)
private static com.mojang.datafixers.kinds.App
lambda$static$1(com.mojang.serialization.codecs.RecordCodecBuilder$Instance arg0)
method_28886(com.mojang.serialization.codecs.RecordCodecBuilder$Instance arg0)
method_28886(com.mojang.serialization.codecs.RecordCodecBuilder$Instance instance)
private static List
lambda$static$0(StructureTemplatePool arg0)
method_28888(class_3785 arg0)
method_28888(StructurePool pool)