public class TemplateManager
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
baseFolder |
private DataFixer |
fixer |
private java.util.Map<java.lang.String,Template> |
templates |
Constructor and Description |
---|
TemplateManager(java.lang.String p_i47239_1_,
DataFixer p_i47239_2_) |
Modifier and Type | Method and Description |
---|---|
Template |
get(MinecraftServer server,
ResourceLocation templatePath) |
Template |
getTemplate(MinecraftServer server,
ResourceLocation id) |
boolean |
readTemplate(ResourceLocation server) |
private boolean |
readTemplateFromJar(ResourceLocation id) |
private void |
readTemplateFromStream(java.lang.String id,
java.io.InputStream stream) |
void |
remove(ResourceLocation templatePath) |
boolean |
writeTemplate(MinecraftServer server,
ResourceLocation id) |
private final java.util.Map<java.lang.String,Template> templates
private final java.lang.String baseFolder
private final DataFixer fixer
public TemplateManager(java.lang.String p_i47239_1_, DataFixer p_i47239_2_)
public Template getTemplate(@Nullable MinecraftServer server, ResourceLocation id)
@Nullable public Template get(@Nullable MinecraftServer server, ResourceLocation templatePath)
public boolean readTemplate(ResourceLocation server)
private boolean readTemplateFromJar(ResourceLocation id)
private void readTemplateFromStream(java.lang.String id, java.io.InputStream stream) throws java.io.IOException
java.io.IOException
public boolean writeTemplate(@Nullable MinecraftServer server, ResourceLocation id)
public void remove(ResourceLocation templatePath)