Uses of Class
net.minecraft.world.level.levelgen.structure.templatesystem.StructureTemplate
Package
Description
-
Uses of StructureTemplate in net.minecraft.world.level.block.entity
Modifier and TypeMethodDescriptionprivate StructureTemplate
StructureBlockEntity.getStructureTemplate
(ServerLevel p_309601_) Modifier and TypeMethodDescriptionprivate void
StructureBlockEntity.loadStructureInfo
(StructureTemplate p_309715_) private void
StructureBlockEntity.placeStructure
(ServerLevel p_309691_, StructureTemplate p_309550_) -
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. -
Uses of StructureTemplate in net.neoforged.neoforge.eventtest.internal
Modifier and TypeFieldDescriptionstatic final StructureTemplate
TestsMod.TEMPLATE3x3
static final StructureTemplate
TestsMod.TEMPLATE3x3_FLOOR
static final StructureTemplate
TestsMod.TEMPLATE9x9
-
Uses of StructureTemplate in net.neoforged.testframework.gametest
Modifier and TypeFieldDescriptionprivate static final StructureTemplateBuilder.FieldHandle<StructureTemplate,
List<StructureTemplate.StructureEntityInfo>> StructureTemplateBuilder.ENTITY_INFO_LIST
private static final StructureTemplateBuilder.FieldHandle<StructureTemplate,
List<StructureTemplate.Palette>> StructureTemplateBuilder.PALETTES
private static final StructureTemplateBuilder.FieldHandle<StructureTemplate,
Vec3i> StructureTemplateBuilder.SIZE
private final Map<ResourceLocation,
Supplier<StructureTemplate>> DynamicStructureTemplates.templates
Modifier and TypeMethodDescriptionStructureTemplateBuilder.build()
static StructureTemplate
StructureTemplateBuilder.empty
(int length, int height, int width) Modifier and TypeMethodDescriptionstatic Supplier<StructureTemplate>
StructureTemplateBuilder.lazy
(int length, int height, int width, UnaryOperator<StructureTemplateBuilder> consumer) private Optional<StructureTemplate>
DynamicStructureTemplates.load
(ResourceLocation location) Modifier and TypeMethodDescriptionvoid
DynamicStructureTemplates.register
(ResourceLocation id, StructureTemplate template) Modifier and TypeMethodDescriptionvoid
DynamicStructureTemplates.register
(ResourceLocation id, Supplier<StructureTemplate> template) -
Uses of StructureTemplate in net.neoforged.testframework.impl
Modifier and TypeMethodDescriptionstatic void
FrameworkCollectors.templatesWithAnnotation
(net.neoforged.fml.ModContainer container, BiConsumer<ResourceLocation, Supplier<StructureTemplate>> acceptor) This method collects structure templates based on static fields containing either aStructureTemplate
, aSupplier
of StructureTemplate or aStructureTemplateBuilder
, annotated withRegisterStructureTemplate
.