Uses of Class
net.minecraft.structure.StructureTemplate
-
Uses of StructureTemplate in net.minecraft.block.entity
Modifier and TypeMethodDescriptionprivate @Nullable StructureTemplate
StructureBlockBlockEntity.getStructureTemplate
(ServerWorld world) Modifier and TypeMethodDescriptionprivate void
StructureBlockBlockEntity.loadAndPlaceStructure
(ServerWorld world, StructureTemplate template) private void
StructureBlockBlockEntity.loadStructure
(StructureTemplate template) -
Uses of StructureTemplate in net.minecraft.structure
Modifier and TypeFieldDescriptionprivate final Function<Identifier,
Optional<StructureTemplate>> StructureTemplateManager.Provider.loader
The field for theloader
record component.private final Map<Identifier,
Optional<StructureTemplate>> StructureTemplateManager.templates
Modifier and TypeMethodDescriptionStructureTemplateManager.createTemplate
(NbtCompound nbt) SimpleStructurePiece.getTemplate()
StructureTemplateManager.getTemplateOrBlank
(Identifier id) private StructureTemplate
StructureTemplateManager.readTemplate
(InputStream templateIInputStream) Modifier and TypeMethodDescriptionStructureTemplateManager.getTemplate
(Identifier id) StructureTemplateManager.Provider.loader()
Returns the value of theloader
record component.private Optional<StructureTemplate>
StructureTemplateManager.loadTemplate
(StructureTemplateManager.TemplateFileOpener opener, Consumer<Throwable> exceptionConsumer) private Optional<StructureTemplate>
StructureTemplateManager.loadTemplate
(Identifier id) private Optional<StructureTemplate>
StructureTemplateManager.loadTemplateFromFile
(Identifier id) private Optional<StructureTemplate>
StructureTemplateManager.loadTemplateFromGameTestFile
(Identifier id) private Optional<StructureTemplate>
StructureTemplateManager.loadTemplateFromResource
(Identifier id) private Optional<StructureTemplate>
StructureTemplateManager.loadTemplateFromSnbt
(Identifier id, Path path) ModifierConstructorDescriptionRuinedPortalStructurePiece
(StructureTemplateManager manager, BlockPos pos, RuinedPortalStructurePiece.VerticalPlacement verticalPlacement, RuinedPortalStructurePiece.Properties properties, Identifier id, StructureTemplate template, BlockRotation rotation, BlockMirror mirror, BlockPos blockPos) ModifierConstructorDescription(package private)
Provider
(Function<Identifier, Optional<StructureTemplate>> function, Supplier<Stream<Identifier>> supplier) -
Uses of StructureTemplate in net.minecraft.structure.pool
Modifier and TypeFieldDescriptionprotected final com.mojang.datafixers.util.Either<Identifier,
StructureTemplate> SinglePoolElement.location
private static final com.mojang.serialization.Codec<com.mojang.datafixers.util.Either<Identifier,
StructureTemplate>> SinglePoolElement.LOCATION_CODEC
Modifier and TypeMethodDescriptionprivate StructureTemplate
SinglePoolElement.getStructure
(StructureTemplateManager structureTemplateManager) Modifier and TypeMethodDescriptionprotected static <E extends SinglePoolElement>
com.mojang.serialization.codecs.RecordCodecBuilder<E,com.mojang.datafixers.util.Either<Identifier, StructureTemplate>> SinglePoolElement.locationGetter()
Modifier and TypeMethodDescriptionprivate static <T> com.mojang.serialization.DataResult<T>
SinglePoolElement.encodeLocation
(com.mojang.datafixers.util.Either<Identifier, StructureTemplate> location, com.mojang.serialization.DynamicOps<T> ops, T prefix) ModifierConstructorDescriptionprotected
LegacySinglePoolElement
(com.mojang.datafixers.util.Either<Identifier, StructureTemplate> location, RegistryEntry<StructureProcessorList> processors, StructurePool.Projection projection) protected
SinglePoolElement
(com.mojang.datafixers.util.Either<Identifier, StructureTemplate> location, RegistryEntry<StructureProcessorList> processors, StructurePool.Projection projection)