net.minecraft.structure.pool

public class StructurePool

net.minecraft.world.level.levelgen.structure.pools.StructureTemplatePool
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
SIZE_UNSET
field_31523
DEFAULT_Y
private static final org.apache.commons.lang3.mutable.MutableObject<com.mojang.serialization.Codec<RegistryEntry<StructurePool>>>
CODEC_REFERENCE
CODEC_REFERENCE
field_40925
FALLBACK
public static final com.mojang.serialization.Codec<StructurePool>
DIRECT_CODEC
DIRECT_CODEC
field_25853
CODEC
public static final com.mojang.serialization.Codec<RegistryEntry<StructurePool>>
CODEC
CODEC
field_24954
REGISTRY_CODEC
private final List<com.mojang.datafixers.util.Pair<StructurePoolElement, Integer>>
rawTemplates
rawTemplates
field_16864
elementWeights
private final it.unimi.dsi.fastutil.objects.ObjectArrayList<StructurePoolElement>
templates
templates
field_16680
elements
private final RegistryEntry<StructurePool>
fallback
fallback
field_40926
fallback
private int
maxSize
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)
getMaxSize(StructureTemplateManager manager)
method_19309(class_3485 arg0)
getHighestY(StructureTemplateManager structureTemplateManager)
public List<com.mojang.datafixers.util.Pair<StructurePoolElement, Integer>>
getTemplates()
getTemplates()
method_67690()
getElementWeights()
public RegistryEntry<StructurePool>
getFallback()
getFallback()
method_46736()
getFallback()
public StructurePoolElement
getRandomTemplate(RandomSource random)
getRandomTemplate(RandomSource random)
method_16631(class_5819 arg0)
getRandomElement(Random random)
public List<StructurePoolElement>
getShuffledTemplates(RandomSource random)
getShuffledTemplates(RandomSource random)
method_16633(class_5819 arg0)
getElementIndicesInRandomOrder(Random random)
public int
size()
size()
method_16632()
getElementCount()