Uses of Class
net.minecraft.structure.StructureTemplate
Packages that use StructureTemplate
Package
Description
-
Uses of StructureTemplate in net.minecraft.block.entity
Methods in net.minecraft.block.entity with parameters of type StructureTemplateModifier and TypeMethodDescriptionboolean
StructureBlockBlockEntity.place
(ServerWorld world, boolean bool, StructureTemplate template) -
Uses of StructureTemplate in net.minecraft.structure
Fields in net.minecraft.structure declared as StructureTemplateFields in net.minecraft.structure with type parameters of type StructureTemplateModifier and TypeFieldDescriptionprivate final Function<Identifier,
Optional<StructureTemplate>> StructureTemplateManager.Provider.loader
The field for theloader
record component.private final Map<Identifier,
Optional<StructureTemplate>> StructureTemplateManager.templates
Methods in net.minecraft.structure that return StructureTemplateModifier and TypeMethodDescriptionStructureTemplateManager.createTemplate
(NbtCompound nbt) SimpleStructurePiece.getTemplate()
StructureTemplateManager.getTemplateOrBlank
(Identifier id) private StructureTemplate
StructureTemplateManager.readTemplate
(InputStream templateIInputStream) Methods in net.minecraft.structure that return types with arguments of type StructureTemplateModifier 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) Constructors in net.minecraft.structure with parameters of type StructureTemplateModifierConstructorDescriptionRuinedPortalStructurePiece
(StructureTemplateManager manager, BlockPos pos, RuinedPortalStructurePiece.VerticalPlacement verticalPlacement, RuinedPortalStructurePiece.Properties properties, Identifier id, StructureTemplate template, BlockRotation rotation, BlockMirror mirror, BlockPos blockPos) Constructor parameters in net.minecraft.structure with type arguments of type StructureTemplateModifierConstructorDescription(package private)
Provider
(Function<Identifier, Optional<StructureTemplate>> function, Supplier<Stream<Identifier>> supplier) -
Uses of StructureTemplate in net.minecraft.structure.pool
Fields in net.minecraft.structure.pool with type parameters of type StructureTemplateModifier 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
Methods in net.minecraft.structure.pool that return StructureTemplateModifier and TypeMethodDescriptionprivate StructureTemplate
SinglePoolElement.getStructure
(StructureTemplateManager structureTemplateManager) Methods in net.minecraft.structure.pool that return types with arguments of type StructureTemplateModifier and TypeMethodDescriptionprotected static <E extends SinglePoolElement>
com.mojang.serialization.codecs.RecordCodecBuilder<E,com.mojang.datafixers.util.Either<Identifier, StructureTemplate>> SinglePoolElement.locationGetter()
Method parameters in net.minecraft.structure.pool with type arguments of type StructureTemplateModifier 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) Constructors in net.minecraft.structure.pool with parameters of type StructureTemplateConstructor parameters in net.minecraft.structure.pool with type arguments of type StructureTemplateModifierConstructorDescriptionprotected
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) -
Uses of StructureTemplate in net.minecraft.test
Methods in net.minecraft.test that return StructureTemplateModifier and TypeMethodDescriptionprivate static StructureTemplate
StructureTestUtil.createStructureTemplate
(String templateId, ServerWorld world)