Class StructureTemplatePool
java.lang.Object
net.minecraft.world.level.levelgen.feature.structures.StructureTemplatePool
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic com.mojang.serialization.Codec<Supplier<StructureTemplatePool>>
static com.mojang.serialization.Codec<StructureTemplatePool>
private ResourceLocation
private static org.apache.logging.log4j.Logger
private int
private ResourceLocation
private List<com.mojang.datafixers.util.Pair<StructurePoolElement,Integer>>
private static int
private List<StructurePoolElement>
-
Constructor Summary
ConstructorDescriptionStructureTemplatePool(ResourceLocation p_69259_, ResourceLocation p_69260_, List<com.mojang.datafixers.util.Pair<Function<StructureTemplatePool.Projection,? extends StructurePoolElement>,Integer>> p_69261_, StructureTemplatePool.Projection p_69262_)
StructureTemplatePool(ResourceLocation p_69255_, ResourceLocation p_69256_, List<com.mojang.datafixers.util.Pair<StructurePoolElement,Integer>> p_69257_)
-
Method Summary
Modifier and TypeMethodDescriptionint
getMaxSize(StructureManager p_69269_)
getName()
getRandomTemplate(Random p_69274_)
getShuffledTemplates(Random p_69277_)
int
size()
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
SIZE_UNSET
private static final int SIZE_UNSET- See Also:
- Constant Field Values
-
DIRECT_CODEC
-
CODEC
-
name
-
rawTemplates
-
templates
-
fallback
-
maxSize
private int maxSize
-
-
Constructor Details
-
StructureTemplatePool
public StructureTemplatePool(ResourceLocation p_69255_, ResourceLocation p_69256_, List<com.mojang.datafixers.util.Pair<StructurePoolElement,Integer>> p_69257_) -
StructureTemplatePool
public StructureTemplatePool(ResourceLocation p_69259_, ResourceLocation p_69260_, List<com.mojang.datafixers.util.Pair<Function<StructureTemplatePool.Projection,? extends StructurePoolElement>,Integer>> p_69261_, StructureTemplatePool.Projection p_69262_)
-
-
Method Details
-
getMaxSize
-
getFallback
-
getRandomTemplate
-
getShuffledTemplates
-
getName
-
size
public int size()
-