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.structure.StructureTemplateManager
net.minecraft.world.level.levelgen.structure.templatesystem.StructureTemplateManager

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
b
LOGGER
field_15514
LOGGER
public static final String
a
STRUCTURE_RESOURCE_DIRECTORY_NAME
field_31684
STRUCTURE_DIRECTORY
private static final String
c
STRUCTURE_GENERATED_DIRECTORY_NAME
field_52243
STRUCTURES_DIRECTORY
private static final String
d
STRUCTURE_FILE_EXTENSION
field_31685
NBT_FILE_EXTENSION
private static final String
e
STRUCTURE_TEXT_FILE_EXTENSION
field_31686
SNBT_FILE_EXTENSION
private final Map<ResourceLocation, Optional<StructureTemplate>>
f
structureRepository
field_15513
templates
private final com.mojang.datafixers.DataFixer
g
fixerUpper
field_15515
dataFixer
private ResourceManager
h
resourceManager
field_25189
resourceManager
private final Path
i
generatedDir
field_15512
generatedPath
private final List<StructureTemplateManager$Source>
j
sources
field_39417
providers
private final HolderGetter<Block>
k
blockLookup
field_40369
blockLookup
private static final FileToIdConverter
l
RESOURCE_LISTER
field_52244
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(akv arg0)
getOrCreate(ResourceLocation arg0)
method_15091(class_2960 arg0)
getTemplateOrBlank(Identifier id)
public Optional<StructureTemplate>
b(akv arg0)
get(ResourceLocation arg0)
method_15094(class_2960 arg0)
getTemplate(Identifier id)
public Stream<ResourceLocation>
a()
listTemplates()
method_44226()
streamTemplates()
private Optional<StructureTemplate>
e(akv arg0)
tryLoad(ResourceLocation arg0)
method_44245(class_2960 arg0)
loadTemplate(Identifier id)
public void
a(aup arg0)
onResourceManagerReload(ResourceManager arg0)
method_29300(class_3300 arg0)
setResourceManager(ResourceManager resourceManager)
private Optional<StructureTemplate>
f(akv arg0)
loadFromResource(ResourceLocation arg0)
method_15088(class_2960 arg0)
loadTemplateFromResource(Identifier id)
private Stream<ResourceLocation>
b()
listResources()
method_44239()
streamTemplatesFromResource()
private Optional<StructureTemplate>
g(akv arg0)
loadFromTestStructures(ResourceLocation arg0)
method_44246(class_2960 arg0)
loadTemplateFromGameTestFile(Identifier id)
private Stream<ResourceLocation>
c()
listTestStructures()
method_44241()
streamTemplatesFromGameTestFile()
private Optional<StructureTemplate>
h(akv arg0)
loadFromGenerated(ResourceLocation arg0)
method_15092(class_2960 arg0)
loadTemplateFromFile(Identifier id)
private Stream<ResourceLocation>
d()
listGenerated()
method_44243()
streamTemplatesFromFile()
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)
streamTemplates(Path directory, String namespace, String fileExtension, Consumer<Identifier> idConsumer)
private String
a(Path arg0, Path arg1)
relativize(Path arg0, Path arg1)
method_44238(Path arg0, Path arg1)
toRelativePath(Path root, Path path)
private Optional<StructureTemplate>
a(akv arg0, Path arg1)
loadFromSnbt(ResourceLocation arg0, Path arg1)
method_44230(class_2960 arg0, Path arg1)
loadTemplateFromSnbt(Identifier id, Path path)
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)
loadTemplate(StructureTemplateManager$TemplateFileOpener opener, Consumer<Throwable> exceptionConsumer)
private StructureTemplate
a(InputStream arg0)
readStructure(InputStream arg0)
method_15090(InputStream arg0)
readTemplate(InputStream templateIInputStream)
public StructureTemplate
a(tq arg0)
readStructure(CompoundTag arg0)
method_21891(class_2487 arg0)
createTemplate(NbtCompound nbt)
public boolean
c(akv arg0)
save(ResourceLocation arg0)
method_15093(class_2960 arg0)
saveTemplate(Identifier id)
public Path
a(akv arg0, String arg1)
createAndValidatePathToGeneratedStructure(ResourceLocation arg0, String arg1)
method_15085(class_2960 arg0, String arg1)
getTemplatePath(Identifier id, String extension)
public void
d(akv arg0)
remove(ResourceLocation arg0)
method_15087(class_2960 arg0)
unloadTemplate(Identifier id)