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

public class StructureTemplateManager

eve
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

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
b
LOGGER
field_15514
f_gnjifoli
LOGGER
LOGGER
public static final String
a
STRUCTURE_RESOURCE_DIRECTORY_NAME
field_31684
f_jfcdqeia
STRUCTURE_DIRECTORY
private static final String
c
STRUCTURE_GENERATED_DIRECTORY_NAME
field_52243
f_khaqxukj
STRUCTURES_DIRECTORY
private static final String
d
STRUCTURE_FILE_EXTENSION
field_31685
f_ikzakmeb
NBT_FILE_EXTENSION
NBT_FILE_EXTENSION
private static final String
e
STRUCTURE_TEXT_FILE_EXTENSION
field_31686
f_hkeiyfvl
SNBT_FILE_EXTENSION
SNBT_FILE_EXTENSION
private final Map<ResourceLocation, Optional<StructureTemplate>>
f
structureRepository
field_15513
f_efihizhm
templates
structures
private final com.mojang.datafixers.DataFixer
g
fixerUpper
field_15515
f_wcochalo
dataFixer
dataFixer
private ResourceManager
h
resourceManager
field_25189
f_bczykawb
resourceManager
resourceManager
private final Path
i
generatedDir
field_15512
f_phazahjc
generatedPath
generatedPath
private final List<StructureTemplateManager$Source>
j
sources
field_39417
f_vumnuxpf
providers
sources
private final HolderGetter<Block>
k
blockLookup
field_40369
f_itzarjva
blockLookup
blockLookup
private static final FileToIdConverter
l
RESOURCE_LISTER
field_52244
f_eozhyyrv
STRUCTURE_NBT_RESOURCE_FINDER

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(alg arg0)
getOrCreate(ResourceLocation arg0)
method_15091(class_2960 arg0)
m_jlaprynr(C_ncpywfca arg0)
getTemplateOrBlank(Identifier id)
getStructureOrBlank(Identifier id)
public Optional<StructureTemplate>
b(alg arg0)
get(ResourceLocation arg0)
method_15094(class_2960 arg0)
m_qnddjfyt(C_ncpywfca arg0)
getTemplate(Identifier id)
getStructure(Identifier id)
public Stream<ResourceLocation>
a()
listTemplates()
method_44226()
m_ejyfvhod()
streamTemplates()
streamTemplates()
private Optional<StructureTemplate>
e(alg arg0)
tryLoad(ResourceLocation arg0)
method_44245(class_2960 arg0)
m_sdcfglns(C_ncpywfca arg0)
loadTemplate(Identifier id)
tryLoadStructure(Identifier structure)
public void
a(avd arg0)
onResourceManagerReload(ResourceManager arg0)
method_29300(class_3300 arg0)
m_okshvwif(C_tmnrpasf arg0)
setResourceManager(ResourceManager resourceManager)
setResourceManager(ResourceManager resourceManager)
private Optional<StructureTemplate>
f(alg arg0)
loadFromResource(ResourceLocation arg0)
method_15088(class_2960 arg0)
m_lvrxtkjb(C_ncpywfca arg0)
loadTemplateFromResource(Identifier id)
loadStructureFromResource(Identifier id)
private Stream<ResourceLocation>
b()
listResources()
method_44239()
m_unhddjra()
streamTemplatesFromResource()
listResourceStructures()
private Optional<StructureTemplate>
g(alg arg0)
loadFromTestStructures(ResourceLocation arg0)
method_44246(class_2960 arg0)
m_xrztfonc(C_ncpywfca arg0)
loadTemplateFromGameTestFile(Identifier id)
loadTestStructure(Identifier id)
private Stream<ResourceLocation>
c()
listTestStructures()
method_44241()
m_oklrgwjy()
streamTemplatesFromGameTestFile()
listTestStructures()
private Optional<StructureTemplate>
h(alg arg0)
loadFromGenerated(ResourceLocation arg0)
method_15092(class_2960 arg0)
m_ncueaeui(C_ncpywfca arg0)
loadTemplateFromFile(Identifier id)
loadStructureFromGeneratedFile(Identifier id)
private Stream<ResourceLocation>
d()
listGenerated()
method_44243()
m_jspnmjgr()
streamTemplatesFromFile()
listGeneratedFileStructures()
private void
a(Path arg0, String arg1, String arg2, Consumer<alg> 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)
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)
private Optional<StructureTemplate>
a(alg 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)
private Optional<StructureTemplate>
a(eve$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)
private StructureTemplate
a(InputStream arg0)
readStructure(InputStream arg0)
method_15090(InputStream arg0)
m_uqnfamcj(InputStream arg0)
readTemplate(InputStream templateIInputStream)
readStructure(InputStream inputStream)
public StructureTemplate
a(tz arg0)
readStructure(CompoundTag arg0)
method_21891(class_2487 arg0)
m_amkgvngf(C_hhlwcnih arg0)
createTemplate(NbtCompound nbt)
createStructureFromNbt(NbtCompound nbt)
public boolean
c(alg arg0)
save(ResourceLocation arg0)
method_15093(class_2960 arg0)
m_ehejovkt(C_ncpywfca arg0)
saveTemplate(Identifier id)
saveStructure(Identifier id)
public Path
a(alg 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)
public void
d(alg arg0)
remove(ResourceLocation arg0)
method_15087(class_2960 arg0)
m_ghddvuph(C_ncpywfca arg0)
unloadTemplate(Identifier id)
removeStructure(Identifier id)