public class StructureManager extends Object
Modifier and Type | Field and Description |
---|---|
private com.mojang.datafixers.DataFixer |
dataFixer |
private ResourceManager |
field_25189 |
private Path |
generatedPath |
private static Logger |
LOGGER |
private Map<Identifier,Structure> |
structures |
Constructor and Description |
---|
StructureManager(ResourceManager resourceManager,
LevelStorage.Session session,
com.mojang.datafixers.DataFixer dataFixer) |
Modifier and Type | Method and 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) |
private static final Logger LOGGER
private final Map<Identifier,Structure> structures
private final com.mojang.datafixers.DataFixer dataFixer
private ResourceManager field_25189
private final Path generatedPath
public StructureManager(ResourceManager resourceManager, LevelStorage.Session session, com.mojang.datafixers.DataFixer dataFixer)
public Structure getStructureOrBlank(Identifier id)
@Nullable public Structure getStructure(Identifier identifier)
public void method_29300(ResourceManager resourceManager)
@Nullable private Structure loadStructureFromResource(Identifier id)
@Nullable private Structure loadStructureFromFile(Identifier id)
private Structure readStructure(InputStream structureInputStream) throws IOException
IOException
public Structure createStructure(CompoundTag tag)
public boolean saveStructure(Identifier id)
public Path getStructurePath(Identifier id, String extension)
private Path getAndCheckStructurePath(Identifier id, String extension)
public void unloadStructure(Identifier id)