Package net.minecraft.structure
Class StructureManager
java.lang.Object
net.minecraft.structure.StructureManager
public class StructureManager extends Object
-
Field Summary
Fields Modifier and Type Field Description private com.mojang.datafixers.DataFixer
dataFixer
private ResourceManager
field_25189
private Path
generatedPath
private static Logger
LOGGER
private Map<Identifier,Structure>
structures
-
Constructor Summary
Constructors Constructor Description StructureManager(ResourceManager resourceManager, LevelStorage.Session session, com.mojang.datafixers.DataFixer dataFixer)
-
Method Summary
Modifier and Type Method Description Structure
createStructure(CompoundTag tag)
private Path
getAndCheckStructurePath(Identifier id, String extension)
Structure
getStructure(Identifier identifier)
Structure
getStructureOrBlank(Identifier id)
Path
getStructurePath(Identifier id, String extension)
private Structure
loadStructureFromFile(Identifier id)
private Structure
loadStructureFromResource(Identifier id)
void
method_29300(ResourceManager resourceManager)
private Structure
readStructure(InputStream structureInputStream)
boolean
saveStructure(Identifier id)
void
unloadStructure(Identifier id)
-
Field Details
-
LOGGER
-
structures
-
dataFixer
private final com.mojang.datafixers.DataFixer dataFixer -
field_25189
-
generatedPath
-
-
Constructor Details
-
StructureManager
public StructureManager(ResourceManager resourceManager, LevelStorage.Session session, com.mojang.datafixers.DataFixer dataFixer)
-
-
Method Details
-
getStructureOrBlank
-
getStructure
-
method_29300
-
loadStructureFromResource
-
loadStructureFromFile
-
readStructure
- Throws:
IOException
-
createStructure
-
saveStructure
-
getStructurePath
-
getAndCheckStructurePath
-
unloadStructure
-