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

public class StructureManager

dcp
net.minecraft.world.level.levelgen.structure.templatesystem.StructureManager
net.minecraft.class_3485
net.minecraft.structure.StructureManager
net.minecraft.src.C_2627_
net.minecraft.world.level.levelgen.structure.templatesystem.DefinedStructureManager

Field summary

Modifier and TypeField
private static final org.apache.logging.log4j.Logger
a
LOGGER
field_15514
LOGGER
f_74325_
private static final String
b
STRUCTURE_DIRECTORY_NAME
field_31684
STRUCTURES_DIRECTORY
f_163771_
private static final String
c
STRUCTURE_FILE_EXTENSION
field_31685
NBT_FILE_EXTENSION
f_163772_
private static final String
d
STRUCTURE_TEXT_FILE_EXTENSION
field_31686
SNBT_FILE_EXTENSION
f_163773_
private final Map<ResourceLocation, Optional<StructureTemplate>>
e
structureRepository
field_15513
structures
f_74326_
private final com.mojang.datafixers.DataFixer
f
fixerUpper
field_15515
dataFixer
f_74327_
private ResourceManager
g
resourceManager
field_25189
resourceManager
f_74328_
private final Path
h
generatedDir
field_15512
generatedPath
f_74329_

Constructor summary

ModifierConstructor
public (ResourceManager resourceManager, LevelStorageSource$LevelStorageAccess session, com.mojang.datafixers.DataFixer dataFixer)

Method summary

Modifier and TypeMethod
public StructureTemplate
a(ww arg0)
getOrCreate(ResourceLocation arg0)
method_15091(class_2960 arg0)
getStructureOrBlank(Identifier id)
m_74341_(C_5265_ arg0)
public Optional<StructureTemplate>
b(ww arg0)
get(ResourceLocation arg0)
method_15094(class_2960 arg0)
getStructure(Identifier id)
m_163774_(C_5265_ arg0)
public void
a(adt arg0)
onResourceManagerReload(ResourceManager arg0)
method_29300(class_3300 arg0)
setResourceManager(ResourceManager resourceManager)
m_74335_(C_77_ arg0)
private Optional<StructureTemplate>
e(ww arg0)
loadFromResource(ResourceLocation arg0)
method_15088(class_2960 arg0)
loadStructureFromResource(Identifier id)
m_163776_(C_5265_ arg0)
private Optional<StructureTemplate>
f(ww arg0)
loadFromGenerated(ResourceLocation arg0)
method_15092(class_2960 arg0)
loadStructureFromFile(Identifier id)
m_163778_(C_5265_ arg0)
private StructureTemplate
a(InputStream arg0)
readStructure(InputStream arg0)
method_15090(InputStream arg0)
readStructure(InputStream structureInputStream)
m_74337_(InputStream arg0)
public StructureTemplate
a(na arg0)
readStructure(CompoundTag arg0)
method_21891(class_2487 arg0)
createStructure(NbtCompound nbt)
m_74339_(C_4917_ arg0)
public boolean
c(ww arg0)
save(ResourceLocation arg0)
method_15093(class_2960 arg0)
saveStructure(Identifier id)
m_74351_(C_5265_ arg0)
public Path
a(ww arg0, String arg1)
createPathToStructure(ResourceLocation arg0, String arg1)
method_15085(class_2960 arg0, String arg1)
getStructurePath(Identifier id, String extension)
m_74343_(C_5265_ p_74345_, String arg1)
private Path
b(ww arg0, String arg1)
createAndValidatePathToStructure(ResourceLocation arg0, String arg1)
method_15086(class_2960 arg0, String arg1)
getAndCheckStructurePath(Identifier id, String extension)
m_74348_(C_5265_ p_74350_, String arg1)
public void
d(ww arg0)
remove(ResourceLocation arg0)
method_15087(class_2960 arg0)
unloadStructure(Identifier id)
m_74353_(C_5265_ arg0)