mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2024-11-25 11:35:18 +01:00
Add StructuredItem#emptyArray (#3915)
This commit is contained in:
parent
1e244a126d
commit
c07adfddb2
@ -46,6 +46,14 @@ public class StructuredItem implements Item {
|
|||||||
return new StructuredItem(0, 0);
|
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
|
@Override
|
||||||
public int identifier() {
|
public int identifier() {
|
||||||
return identifier;
|
return identifier;
|
||||||
|
Loading…
Reference in New Issue
Block a user