net.minecraft.world.level.levelgen.structure.templatesystem

public class StructureTemplateManager

emn
net.minecraft.world.level.levelgen.structure.templatesystem.StructureTemplateManager
net.minecraft.class_3485
net.minecraft.structure.StructureTemplateManager
net.minecraft.src.C_213305_
net.minecraft.world.level.levelgen.structure.templatesystem.StructureTemplateManager

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
a
LOGGER
field_15514
LOGGER
f_230340_
private static final String
b
STRUCTURE_DIRECTORY_NAME
field_31684
STRUCTURES_DIRECTORY
f_230341_
private static final String
c
STRUCTURE_FILE_EXTENSION
field_31685
NBT_FILE_EXTENSION
f_230343_
private static final String
d
STRUCTURE_TEXT_FILE_EXTENSION
field_31686
SNBT_FILE_EXTENSION
f_230344_
private final Map<ResourceLocation, Optional<StructureTemplate>>
e
structureRepository
field_15513
templates
f_230345_
private final com.mojang.datafixers.DataFixer
f
fixerUpper
field_15515
dataFixer
f_230346_
private ResourceManager
g
resourceManager
field_25189
resourceManager
f_230347_
private final Path
h
generatedDir
field_15512
generatedPath
f_230348_
private final List<StructureTemplateManager$Source>
i
sources
field_39417
providers
f_230349_
private final HolderGetter<Block>
j
blockLookup
field_40369
blockLookup
f_243724_
private static final FileToIdConverter
k
LISTER
field_40370
NBT_FINDER
f_244413_

Constructor summary

ModifierConstructor
public (ResourceManager resourceManager, LevelStorageSource$LevelStorageAccess session, com.mojang.datafixers.DataFixer dataFixer, HolderGetter<Block> blockLookup)

Method summary

Modifier and TypeMethod
public StructureTemplate
a(alf arg0)
getOrCreate(ResourceLocation arg0)
method_15091(class_2960 arg0)
getTemplateOrBlank(Identifier id)
m_230359_(C_5265_ arg0)
public Optional<StructureTemplate>
b(alf arg0)
get(ResourceLocation arg0)
method_15094(class_2960 arg0)
getTemplate(Identifier id)
m_230407_(C_5265_ arg0)
public Stream<ResourceLocation>
a()
listTemplates()
method_44226()
streamTemplates()
m_230355_()
private Optional<StructureTemplate>
e(alf arg0)
tryLoad(ResourceLocation arg0)
method_44245(class_2960 arg0)
loadTemplate(Identifier id)
m_230425_(C_5265_ arg0)
public void
a(aup arg0)
onResourceManagerReload(ResourceManager arg0)
method_29300(class_3300 arg0)
setResourceManager(ResourceManager resourceManager)
m_230370_(C_77_ arg0)
private Optional<StructureTemplate>
f(alf arg0)
loadFromResource(ResourceLocation arg0)
method_15088(class_2960 arg0)
loadTemplateFromResource(Identifier id)
m_230427_(C_5265_ arg0)
private Stream<ResourceLocation>
b()
listResources()
method_44239()
streamTemplatesFromResource()
m_230406_()
private Optional<StructureTemplate>
g(alf arg0)
loadFromTestStructures(ResourceLocation arg0)
method_44246(class_2960 arg0)
loadTemplateFromGameTestFile(Identifier id)
m_230429_(C_5265_ arg0)
private Stream<ResourceLocation>
c()
listTestStructures()
method_44241()
streamTemplatesFromGameTestFile()
m_230415_()
private Optional<StructureTemplate>
h(alf arg0)
loadFromGenerated(ResourceLocation arg0)
method_15092(class_2960 arg0)
loadTemplateFromFile(Identifier id)
m_230431_(C_5265_ arg0)
private Stream<ResourceLocation>
d()
listGenerated()
method_44243()
streamTemplatesFromFile()
m_230420_()
private Stream<ResourceLocation>
a(Path arg0)
listGeneratedInNamespace(Path arg0)
method_44235(Path arg0)
streamTemplates(Path namespaceDirectory)
m_230388_(Path arg0)
private Stream<ResourceLocation>
a(Path arg0, String arg1, String arg2)
listFolderContents(Path arg0, String arg1, String arg2)
method_44236(Path arg0, String arg1, String arg2)
streamTemplates(Path structuresDirectoryPath, String namespace, String extension)
m_230394_(Path p_230396_, String p_230397_, String arg2)
private String
a(Path arg0, Path arg1)
relativize(Path arg0, Path arg1)
method_44238(Path arg0, Path arg1)
toRelativePath(Path root, Path path)
m_230401_(Path p_230403_, Path arg1)
private Optional<StructureTemplate>
a(alf arg0, Path arg1)
loadFromSnbt(ResourceLocation arg0, Path arg1)
method_44230(class_2960 arg0, Path arg1)
loadTemplateFromSnbt(Identifier id, Path path)
m_230367_(C_5265_ p_230369_, Path arg1)
private Optional<StructureTemplate>
a(emn$a arg0, Consumer<Throwable> arg1)
load(StructureTemplateManager$InputStreamOpener arg0, Consumer<Throwable> arg1)
method_44231(class_3485$class_7513 arg0, Consumer<Throwable> arg1)
loadTemplate(StructureTemplateManager$TemplateFileOpener opener, Consumer<Throwable> exceptionConsumer)
m_230372_(C_213305_$C_213306_ p_230374_, Consumer<Throwable> arg1)
private StructureTemplate
a(InputStream arg0)
readStructure(InputStream arg0)
method_15090(InputStream arg0)
readTemplate(InputStream templateIInputStream)
m_230377_(InputStream arg0)
public StructureTemplate
a(us arg0)
readStructure(CompoundTag arg0)
method_21891(class_2487 arg0)
createTemplate(NbtCompound nbt)
m_230404_(C_4917_ arg0)
public boolean
c(alf arg0)
save(ResourceLocation arg0)
method_15093(class_2960 arg0)
saveTemplate(Identifier id)
m_230416_(C_5265_ arg0)
public Path
a(alf arg0, String arg1)
getPathToGeneratedStructure(ResourceLocation arg0, String arg1)
method_44228(class_2960 arg0, String arg1)
getTemplatePath(Identifier id, String extension)
m_230361_(C_5265_ p_230363_, String arg1)
public static Path
a(Path arg0, alf arg1, String arg2)
createPathToStructure(Path arg0, ResourceLocation arg1, String arg2)
method_15085(Path arg0, class_2960 arg1, String arg2)
getTemplatePath(Path path, Identifier id, String extension)
m_230390_(Path p_230391_, C_5265_ p_230392_, String p_230393_)
private static Path
b(Path arg0, alf arg1, String arg2)
createAndValidatePathToStructure(Path arg0, ResourceLocation arg1, String arg2)
method_15086(Path arg0, class_2960 arg1, String arg2)
getAndCheckTemplatePath(Path path, Identifier id, String extension)
m_230411_(Path p_230412_, C_5265_ p_230413_, String p_230414_)
public void
d(alf arg0)
remove(ResourceLocation arg0)
method_15087(class_2960 arg0)
unloadTemplate(Identifier id)
m_230421_(C_5265_ arg0)