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

public class StructureTemplatePool

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

Field summary

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

Constructor summary

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

Method summary

Modifier and TypeMethod
public int
a(erq arg0)
getMaxSize(StructureTemplateManager arg0)
method_19309(class_3485 arg0)
getHighestY(StructureTemplateManager structureTemplateManager)
public Holder<StructureTemplatePool>
a()
getFallback()
method_46736()
getFallback()
public StructurePoolElement
a(azh arg0)
getRandomTemplate(RandomSource arg0)
method_16631(class_5819 arg0)
getRandomElement(Random random)
public List<StructurePoolElement>
b(azh arg0)
getShuffledTemplates(RandomSource arg0)
method_16633(class_5819 arg0)
getElementIndicesInRandomOrder(Random random)
public int
b()
size()
method_16632()
getElementCount()