mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2025-01-26 10:01:41 +01:00
Added toString to resolve issue with arrays
This commit is contained in:
parent
2d032523c7
commit
de951b6c4b
@ -31,11 +31,11 @@ import world.bentobox.bentobox.api.panels.Panel;
|
||||
* @since 1.17.3
|
||||
*/
|
||||
public record PanelTemplateRecord(Panel.Type type,
|
||||
@Nullable String title,
|
||||
@Nullable TemplateItem border,
|
||||
@Nullable TemplateItem background,
|
||||
boolean[] forcedRows,
|
||||
@NonNull ItemTemplateRecord[][] content)
|
||||
@Nullable String title,
|
||||
@Nullable TemplateItem border,
|
||||
@Nullable TemplateItem background,
|
||||
boolean[] forcedRows,
|
||||
@NonNull ItemTemplateRecord[][] 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) + "}";
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user