Add missing templated panel builder method (#1935)

#1932 implemented a feature that allows reading multiple panels from a single file, however, there was a missing builder in TemplatedPanelBuilder class that would allow to use it.

This fixes it and adds the missing builder method.
This commit is contained in:
BONNe 2022-02-12 04:06:56 +02:00 committed by GitHub
parent cef31306ac
commit fa68f8f01c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -48,6 +48,23 @@ public class TemplatedPanelBuilder
} }
/**
* Adds the template that must be loaded for Template panel builder.
*
* @param panelName the gui name
* @param templateName the name of the file
* @param dataFolder the data folder
* @return the template panel builder
* @since 1.20.0
*/
public TemplatedPanelBuilder template(String panelName, String templateName, File dataFolder)
{
this.panelTemplate = TemplateReader.readTemplatePanel(panelName, templateName, dataFolder);
return this;
}
/** /**
* Adds the user for template panel builder. * Adds the user for template panel builder.
* *