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

public class StructureTemplateManager

erq
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
b
LOGGER
field_15514
f_gnjifoli
LOGGER
LOGGER
f_230340_
public static final String
a
STRUCTURE_RESOURCE_DIRECTORY_NAME
field_31684
f_jfcdqeia
STRUCTURE_DIRECTORY
f_336882_
private static final String
c
STRUCTURE_GENERATED_DIRECTORY_NAME
field_52243
f_khaqxukj
STRUCTURES_DIRECTORY
f_336957_
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
blockLookup
f_243724_
private static final FileToIdConverter
l
RESOURCE_LISTER
field_52244
f_eozhyyrv
STRUCTURE_NBT_RESOURCE_FINDER
f_336608_

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(akv 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(akv 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(akv 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(aup 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(akv 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(akv 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(akv 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 void
a(Path arg0, String arg1, String arg2, Consumer<akv> arg3)
listFolderContents(Path arg0, String arg1, String arg2, Consumer<ResourceLocation> arg3)
method_44236(Path arg0, String arg1, String arg2, Consumer<class_2960> arg3)
m_fevkmeqm(Path arg0, String arg1, String arg2, Consumer<C_ncpywfca> arg3)
streamTemplates(Path directory, String namespace, String fileExtension, Consumer<Identifier> idConsumer)
listDirectoryContents(Path directory, String idNamespace, String extension, Consumer<Identifier> arg3)
m_230394_(Path p_230396_, String p_230397_, String p_342318_, Consumer<C_5265_> arg3)
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(akv 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(erq$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(tq 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(akv 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(akv arg0, String arg1)
createAndValidatePathToGeneratedStructure(ResourceLocation arg0, String arg1)
method_15085(class_2960 arg0, String arg1)
m_crqnadcw(C_ncpywfca arg0, String arg1)
getTemplatePath(Identifier id, String extension)
m_crqnadcw(Identifier id, String other)
m_339684_(C_5265_ p_345223_, String arg1)
public void
d(akv 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)