Uses of Class
net.minecraft.world.level.levelgen.structure.templatesystem.StructureTemplate
Package
Description
-
Uses of StructureTemplate in net.minecraft.gametest.framework
Modifier and TypeMethodDescriptionprivate static StructureTemplate
StructureUtils.getStructureTemplate
(String p_127881_, ServerLevel p_127882_) -
Uses of StructureTemplate in net.minecraft.world.level.block.entity
Modifier and TypeMethodDescriptionboolean
StructureBlockEntity.loadStructure
(ServerLevel p_59848_, boolean p_59849_, StructureTemplate p_59850_) -
Uses of StructureTemplate in net.minecraft.world.level.levelgen.structure
-
Uses of StructureTemplate in net.minecraft.world.level.levelgen.structure.pools
Modifier and TypeFieldDescriptionprotected final com.mojang.datafixers.util.Either<ResourceLocation,
StructureTemplate> SinglePoolElement.template
private static final com.mojang.serialization.Codec<com.mojang.datafixers.util.Either<ResourceLocation,
StructureTemplate>> SinglePoolElement.TEMPLATE_CODEC
Modifier and TypeMethodDescriptionprivate StructureTemplate
SinglePoolElement.getTemplate
(StructureTemplateManager p_227300_) Modifier and TypeMethodDescriptionprotected static <E extends SinglePoolElement>
com.mojang.serialization.codecs.RecordCodecBuilder<E,com.mojang.datafixers.util.Either<ResourceLocation, StructureTemplate>> SinglePoolElement.templateCodec()
Modifier and TypeMethodDescriptionprivate static <T> com.mojang.serialization.DataResult<T>
SinglePoolElement.encodeTemplate
(com.mojang.datafixers.util.Either<ResourceLocation, StructureTemplate> p_210425_, com.mojang.serialization.DynamicOps<T> p_210426_, T p_210427_) ModifierConstructorDescriptionprotected
LegacySinglePoolElement
(com.mojang.datafixers.util.Either<ResourceLocation, StructureTemplate> p_210348_, Holder<StructureProcessorList> p_210349_, StructureTemplatePool.Projection p_210350_) protected
SinglePoolElement
(com.mojang.datafixers.util.Either<ResourceLocation, StructureTemplate> p_210415_, Holder<StructureProcessorList> p_210416_, StructureTemplatePool.Projection p_210417_) -
Uses of StructureTemplate in net.minecraft.world.level.levelgen.structure.structures
ModifierConstructorDescriptionRuinedPortalPiece
(StructureTemplateManager p_229105_, BlockPos p_229106_, RuinedPortalPiece.VerticalPlacement p_229107_, RuinedPortalPiece.Properties p_229108_, ResourceLocation p_229109_, StructureTemplate p_229110_, Rotation p_229111_, Mirror p_229112_, BlockPos p_229113_) -
Uses of StructureTemplate in net.minecraft.world.level.levelgen.structure.templatesystem
Modifier and TypeFieldDescriptionprivate final Function<ResourceLocation,
Optional<StructureTemplate>> StructureTemplateManager.Source.loader
The field for theloader
record component.private final Map<ResourceLocation,
Optional<StructureTemplate>> StructureTemplateManager.structureRepository
Modifier and TypeMethodDescriptionStructureTemplateManager.getOrCreate
(ResourceLocation p_230360_) private StructureTemplate
StructureTemplateManager.readStructure
(InputStream p_230378_) StructureTemplateManager.readStructure
(CompoundTag p_230405_) Modifier and TypeMethodDescriptionStructureTemplateManager.get
(ResourceLocation p_230408_) private Optional<StructureTemplate>
StructureTemplateManager.load
(StructureTemplateManager.InputStreamOpener p_230373_, Consumer<Throwable> p_230374_) StructureTemplateManager.Source.loader()
Returns the value of theloader
record component.private Optional<StructureTemplate>
StructureTemplateManager.loadFromGenerated
(ResourceLocation p_230432_) private Optional<StructureTemplate>
StructureTemplateManager.loadFromResource
(ResourceLocation p_230428_) private Optional<StructureTemplate>
StructureTemplateManager.loadFromSnbt
(ResourceLocation p_230368_, Path p_230369_) private Optional<StructureTemplate>
StructureTemplateManager.loadFromTestStructures
(ResourceLocation p_230430_) private Optional<StructureTemplate>
StructureTemplateManager.tryLoad
(ResourceLocation p_230426_) Modifier and TypeMethodDescriptionStructureProcessor.process
(LevelReader p_74140_, BlockPos p_74141_, BlockPos p_74142_, StructureTemplate.StructureBlockInfo p_74143_, StructureTemplate.StructureBlockInfo p_74144_, StructurePlaceSettings p_74145_, StructureTemplate template) StructureTemplate.processBlockInfos
(ServerLevelAccessor p_278297_, BlockPos p_74519_, BlockPos p_74520_, StructurePlaceSettings p_74521_, List<StructureTemplate.StructureBlockInfo> p_74522_, StructureTemplate template) StructureProcessor.processEntity
(LevelReader world, BlockPos seedPos, StructureTemplate.StructureEntityInfo rawEntityInfo, StructureTemplate.StructureEntityInfo entityInfo, StructurePlaceSettings placementSettings, StructureTemplate template) FORGE: Add entity processing.StructureTemplate.processEntityInfos
(StructureTemplate template, LevelAccessor p_215387_0_, BlockPos p_215387_1_, StructurePlaceSettings p_215387_2_, List<StructureTemplate.StructureEntityInfo> p_215387_3_) ModifierConstructorDescription(package private)
Source
(Function<ResourceLocation, Optional<StructureTemplate>> loader, Supplier<Stream<ResourceLocation>> lister) Creates an instance of aSource
record class.