net.minecraft.world.level.levelgen.structure.pools

public class StructureTemplatePool

dln
net.minecraft.world.level.levelgen.structure.pools.StructureTemplatePool
net.minecraft.class_3785
net.minecraft.structure.pool.StructurePool
net.minecraft.src.C_207042_
net.minecraft.world.level.levelgen.structure.pools.WorldGenFeatureDefinedStructurePoolTemplate

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
c
LOGGER
field_24955
LOGGER
f_210556_
private static final int
d
SIZE_UNSET
field_31523
DEFAULT_Y
f_210557_
public static final com.mojang.serialization.Codec<StructureTemplatePool>
a
DIRECT_CODEC
field_25853
CODEC
f_210554_
public static final com.mojang.serialization.Codec<Holder<StructureTemplatePool>>
b
CODEC
field_24954
REGISTRY_CODEC
f_210555_
private final ResourceLocation
e
name
field_16678
id
f_210558_
private final List<com.mojang.datafixers.util.Pair<StructurePoolElement, Integer>>
f
rawTemplates
field_16864
elementCounts
f_210559_
private final it.unimi.dsi.fastutil.objects.ObjectArrayList<StructurePoolElement>
g
templates
field_16680
elements
f_210560_
private final ResourceLocation
h
fallback
field_16681
terminatorsId
f_210561_
private int
i
maxSize
field_18707
highestY
f_210562_

Constructor summary

ModifierConstructor
public (ResourceLocation id, ResourceLocation terminatorsId, List<com.mojang.datafixers.util.Pair<StructurePoolElement, Integer>> elementCounts)
public (ResourceLocation id, ResourceLocation terminatorsId, List<com.mojang.datafixers.util.Pair<Function<StructureTemplatePool$Projection, ? extends StructurePoolElement>, Integer>> elementCounts, StructureTemplatePool$Projection projection)

Method summary

Modifier and TypeMethod
public int
a(dnx arg0)
getMaxSize(StructureTemplateManager arg0)
method_19309(class_3485 arg0)
getHighestY(StructureTemplateManager structureTemplateManager)
m_227357_(C_213305_ arg0)
public ResourceLocation
a()
getFallback()
method_16634()
getTerminatorsId()
m_210573_()
public StructurePoolElement
a(alu arg0)
getRandomTemplate(RandomSource arg0)
method_16631(class_5819 arg0)
getRandomElement(Random random)
m_227355_(C_212974_ arg0)
public List<StructurePoolElement>
b(alu arg0)
getShuffledTemplates(RandomSource arg0)
method_16633(class_5819 arg0)
getElementIndicesInRandomOrder(Random random)
m_227362_(C_212974_ arg0)
public ResourceLocation
b()
getName()
method_16629()
getId()
m_210587_()
public int
c()
size()
method_16632()
getElementCount()
m_210590_()