Class TemplateManager
java.lang.Object
net.minecraft.world.gen.feature.template.TemplateManager
-
Field Summary
Modifier and TypeFieldDescriptionprivate final com.mojang.datafixers.DataFixer
private final Path
private static final org.apache.logging.log4j.Logger
private IResourceManager
private final Map<ResourceLocation,
Template> -
Constructor Summary
ConstructorDescriptionTemplateManager
(IResourceManager p_i232119_1_, SaveFormat.LevelSave p_i232119_2_, com.mojang.datafixers.DataFixer p_i232119_3_) -
Method Summary
Modifier and TypeMethodDescriptionprivate Path
createAndValidatePathToStructure
(ResourceLocation p_209510_1_, String p_209510_2_) createPathToStructure
(ResourceLocation p_209509_1_, String p_209509_2_) get
(ResourceLocation p_200219_1_) getOrCreate
(ResourceLocation p_200220_1_) private Template
loadFromGenerated
(ResourceLocation p_195428_1_) private Template
loadFromResource
(ResourceLocation p_209201_1_) void
onResourceManagerReload
(IResourceManager p_195410_1_) private Template
readStructure
(InputStream p_209205_1_) readStructure
(CompoundNBT p_227458_1_) void
remove
(ResourceLocation p_189941_1_) boolean
save
(ResourceLocation p_195429_1_)
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
structureRepository
-
fixerUpper
private final com.mojang.datafixers.DataFixer fixerUpper -
resourceManager
-
generatedDir
-
-
Constructor Details
-
TemplateManager
public TemplateManager(IResourceManager p_i232119_1_, SaveFormat.LevelSave p_i232119_2_, com.mojang.datafixers.DataFixer p_i232119_3_)
-
-
Method Details
-
getOrCreate
-
get
-
onResourceManagerReload
-
loadFromResource
-
loadFromGenerated
-
readStructure
- Throws:
IOException
-
readStructure
-
save
-
createPathToStructure
-
createAndValidatePathToStructure
-
remove
-