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

public class StructureTemplateManager

dvu
net.minecraft.world.level.levelgen.structure.templatesystem.StructureTemplateManager
net.minecraft.class_3485
net.minecraft.unmapped.C_zxhjfyir
net.minecraft.structure.StructureTemplateManager
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
f_gnjifoli
LOGGER
LOGGER
f_230340_
private static final String
b
STRUCTURE_DIRECTORY_NAME
field_31684
f_wmfyakvy
STRUCTURES_DIRECTORY
STRUCTURES_DIRECTORY
f_230341_
private static final String
c
TEST_STRUCTURES_DIR
field_39416
f_yerpywmx
GAME_TEST_STRUCTURES_DIRECTORY
TEST_STRUCTURES_DIRECTORY
f_230342_
private static final String
d
STRUCTURE_FILE_EXTENSION
field_31685
f_ikzakmeb
NBT_FILE_EXTENSION
NBT_FILE_EXTENSION
f_230343_
private static final String
e
STRUCTURE_TEXT_FILE_EXTENSION
field_31686
f_hkeiyfvl
SNBT_FILE_EXTENSION
SNBT_FILE_EXTENSION
f_230344_
private final Map<ResourceLocation, Optional<StructureTemplate>>
f
structureRepository
field_15513
f_efihizhm
templates
structures
f_230345_
private final com.mojang.datafixers.DataFixer
g
fixerUpper
field_15515
f_wcochalo
dataFixer
dataFixer
f_230346_
private ResourceManager
h
resourceManager
field_25189
f_bczykawb
resourceManager
resourceManager
f_230347_
private final Path
i
generatedDir
field_15512
f_phazahjc
generatedPath
generatedPath
f_230348_
private final List<StructureTemplateManager$Source>
j
sources
field_39417
f_vumnuxpf
providers
sources
f_230349_
private final HolderGetter<Block>
k
blockLookup
field_40369
f_itzarjva
blockLookup
f_243724_
private static final FileToIdConverter
l
LISTER
field_40370
f_lefccdvx
NBT_FINDER
STRUCTURE_NAMESPACE
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(acq arg0)
getOrCreate(ResourceLocation arg0)
method_15091(class_2960 arg0)
m_jlaprynr(C_ncpywfca arg0)
getTemplateOrBlank(Identifier id)
getStructureOrBlank(Identifier id)
m_230359_(C_5265_ arg0)
public Optional<StructureTemplate>
b(acq arg0)
get(ResourceLocation arg0)
method_15094(class_2960 arg0)
m_qnddjfyt(C_ncpywfca arg0)
getTemplate(Identifier id)
getStructure(Identifier id)
m_230407_(C_5265_ arg0)
public Stream<ResourceLocation>
a()
listTemplates()
method_44226()
m_ejyfvhod()
streamTemplates()
streamTemplates()
m_230355_()
private Optional<StructureTemplate>
e(acq arg0)
tryLoad(ResourceLocation arg0)
method_44245(class_2960 arg0)
m_sdcfglns(C_ncpywfca arg0)
loadTemplate(Identifier id)
tryLoadStructure(Identifier structure)
m_230425_(C_5265_ arg0)
public void
a(akx arg0)
onResourceManagerReload(ResourceManager arg0)
method_29300(class_3300 arg0)
m_okshvwif(C_tmnrpasf arg0)
setResourceManager(ResourceManager resourceManager)
setResourceManager(ResourceManager resourceManager)
m_230370_(C_77_ arg0)
private Optional<StructureTemplate>
f(acq arg0)
loadFromResource(ResourceLocation arg0)
method_15088(class_2960 arg0)
m_lvrxtkjb(C_ncpywfca arg0)
loadTemplateFromResource(Identifier id)
loadStructureFromResource(Identifier id)
m_230427_(C_5265_ arg0)
private Stream<ResourceLocation>
b()
listResources()
method_44239()
m_unhddjra()
streamTemplatesFromResource()
listResourceStructures()
m_230406_()
private Optional<StructureTemplate>
g(acq arg0)
loadFromTestStructures(ResourceLocation arg0)
method_44246(class_2960 arg0)
m_xrztfonc(C_ncpywfca arg0)
loadTemplateFromGameTestFile(Identifier id)
loadTestStructure(Identifier id)
m_230429_(C_5265_ arg0)
private Stream<ResourceLocation>
c()
listTestStructures()
method_44241()
m_oklrgwjy()
streamTemplatesFromGameTestFile()
listTestStructures()
m_230415_()
private Optional<StructureTemplate>
h(acq arg0)
loadFromGenerated(ResourceLocation arg0)
method_15092(class_2960 arg0)
m_ncueaeui(C_ncpywfca arg0)
loadTemplateFromFile(Identifier id)
loadStructureFromGeneratedFile(Identifier id)
m_230431_(C_5265_ arg0)
private Stream<ResourceLocation>
d()
listGenerated()
method_44243()
m_jspnmjgr()
streamTemplatesFromFile()
listGeneratedFileStructures()
m_230420_()
private Stream<ResourceLocation>
a(Path arg0)
listGeneratedInNamespace(Path arg0)
method_44235(Path arg0)
m_htaljgjs(Path arg0)
streamTemplates(Path namespaceDirectory)
listDirectoryStructures(Path directory)
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)
m_fevkmeqm(Path arg0, String arg1, String arg2)
streamTemplates(Path structuresDirectoryPath, String namespace, String extension)
listDirectoryContents(Path directory, String idNamespace, 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)
m_nwvaxfua(Path arg0, Path arg1)
toRelativePath(Path root, Path path)
relativizePath(Path base, Path path)
m_230401_(Path p_230403_, Path arg1)
private Optional<StructureTemplate>
a(acq arg0, Path arg1)
loadFromSnbt(ResourceLocation arg0, Path arg1)
method_44230(class_2960 arg0, Path arg1)
m_yvafgzob(C_ncpywfca arg0, Path arg1)
loadTemplateFromSnbt(Identifier id, Path path)
loadFromSnbt(Identifier structure, Path directory)
m_230367_(C_5265_ p_230369_, Path arg1)
private Optional<StructureTemplate>
a(dvu$a arg0, Consumer<Throwable> arg1)
load(StructureTemplateManager$InputStreamOpener arg0, Consumer<Throwable> arg1)
method_44231(class_3485$class_7513 arg0, Consumer<Throwable> arg1)
m_xntkmtxe(C_zxhjfyir$C_ymoxixhf arg0, Consumer<Throwable> arg1)
loadTemplate(StructureTemplateManager$TemplateFileOpener opener, Consumer<Throwable> exceptionConsumer)
load(StructureTemplateManager$InputStreamOpener inputStreamOpener, Consumer<Throwable> exceptionHandler)
m_230372_(C_213305_$C_213306_ p_230374_, Consumer<Throwable> arg1)
private StructureTemplate
a(InputStream arg0)
readStructure(InputStream arg0)
method_15090(InputStream arg0)
m_uqnfamcj(InputStream arg0)
readTemplate(InputStream templateIInputStream)
readStructure(InputStream inputStream)
m_230377_(InputStream arg0)
public StructureTemplate
a(qr arg0)
readStructure(CompoundTag arg0)
method_21891(class_2487 arg0)
m_amkgvngf(C_hhlwcnih arg0)
createTemplate(NbtCompound nbt)
createStructureFromNbt(NbtCompound nbt)
m_230404_(C_4917_ arg0)
public boolean
c(acq arg0)
save(ResourceLocation arg0)
method_15093(class_2960 arg0)
m_ehejovkt(C_ncpywfca arg0)
saveTemplate(Identifier id)
saveStructure(Identifier id)
m_230416_(C_5265_ arg0)
public Path
a(acq arg0, String arg1)
getPathToGeneratedStructure(ResourceLocation arg0, String arg1)
method_44228(class_2960 arg0, String arg1)
m_lsewnuxs(C_ncpywfca arg0, String arg1)
getTemplatePath(Identifier id, String extension)
getStructurePath(Identifier id, String extension)
m_230361_(C_5265_ p_230363_, String arg1)
public static Path
a(Path arg0, acq arg1, String arg2)
createPathToStructure(Path arg0, ResourceLocation arg1, String arg2)
method_15085(Path arg0, class_2960 arg1, String arg2)
m_agsqowyb(Path arg0, C_ncpywfca arg1, String arg2)
getTemplatePath(Path path, Identifier id, String extension)
getStructurePath(Path outputPath, Identifier id, String extension)
m_230390_(Path p_230391_, C_5265_ p_230392_, String p_230393_)
private static Path
b(Path arg0, acq arg1, String arg2)
createAndValidatePathToStructure(Path arg0, ResourceLocation arg1, String arg2)
method_15086(Path arg0, class_2960 arg1, String arg2)
m_fbtkeoyv(Path arg0, C_ncpywfca arg1, String arg2)
getAndCheckTemplatePath(Path path, Identifier id, String extension)
getAndValidateStructurePath(Path outputPath, Identifier id, String extension)
m_230411_(Path p_230412_, C_5265_ p_230413_, String p_230414_)
public void
d(acq arg0)
remove(ResourceLocation arg0)
method_15087(class_2960 arg0)
m_ghddvuph(C_ncpywfca arg0)
unloadTemplate(Identifier id)
removeStructure(Identifier id)
m_230421_(C_5265_ arg0)