mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-11-23 11:15:24 +01:00
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:
parent
cef31306ac
commit
fa68f8f01c
@ -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.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user