diff --git a/api/src/main/java/com/viaversion/viaversion/api/minecraft/item/StructuredItem.java b/api/src/main/java/com/viaversion/viaversion/api/minecraft/item/StructuredItem.java index df6de2ef3..0c199f883 100644 --- a/api/src/main/java/com/viaversion/viaversion/api/minecraft/item/StructuredItem.java +++ b/api/src/main/java/com/viaversion/viaversion/api/minecraft/item/StructuredItem.java @@ -46,6 +46,14 @@ public class StructuredItem implements Item { return new StructuredItem(0, 0); } + public static StructuredItem[] emptyArray(final int size) { + final StructuredItem[] items = new StructuredItem[size]; + for (int i = 0; i < items.length; i++) { + items[i] = empty(); + } + return items; + } + @Override public int identifier() { return identifier; @@ -112,4 +120,4 @@ public class StructuredItem implements Item { ", amount=" + amount + '}'; } -} +} \ No newline at end of file