mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2025-01-27 02:21:42 +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
|
* @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) + "}";
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user