Added toString to resolve issue with arrays

This commit is contained in:
tastybento 2021-12-05 11:58:20 -08:00
parent 2d032523c7
commit de951b6c4b

View File

@ -31,11 +31,11 @@ import world.bentobox.bentobox.api.panels.Panel;
* @since 1.17.3 * @since 1.17.3
*/ */
public record PanelTemplateRecord(Panel.Type type, public record PanelTemplateRecord(Panel.Type type,
@Nullable String title, @Nullable String title,
@Nullable TemplateItem border, @Nullable TemplateItem border,
@Nullable TemplateItem background, @Nullable TemplateItem background,
boolean[] forcedRows, boolean[] forcedRows,
@NonNull ItemTemplateRecord[][] content) @NonNull ItemTemplateRecord[][] content)
{ {
/** /**
* Instantiates a new Panel template record with empty content. * Instantiates a new Panel template record with empty content.
@ -107,4 +107,15 @@ public record PanelTemplateRecord(Panel.Type type,
} }
@Override
public String toString() {
return "PanelTemplateRecord {type=" + type +
", title=" + title +
", border=" + border +
", background=" + background +
", forcedRows=" + Arrays.toString(forcedRows) +
", content=" + Arrays.toString(content) + "}";
}
} }