|
|
@ -95,14 +95,9 @@ public abstract class BukkitData implements Data {
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public void setContents(@NotNull Data.Items contents) {
|
|
|
|
public void setContents(@NotNull Data.Items contents) {
|
|
|
|
System.arraycopy(
|
|
|
|
this.setContents(((BukkitData.Items) contents).getContents());
|
|
|
|
((BukkitData.Items) contents).getContents(),
|
|
|
|
|
|
|
|
0, this.contents,
|
|
|
|
|
|
|
|
0, this.contents.length
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@SuppressWarnings("unused")
|
|
|
|
|
|
|
|
public void setContents(@NotNull ItemStack[] contents) {
|
|
|
|
public void setContents(@NotNull ItemStack[] contents) {
|
|
|
|
System.arraycopy(contents, 0, this.contents, 0, this.contents.length);
|
|
|
|
System.arraycopy(contents, 0, this.contents, 0, this.contents.length);
|
|
|
|
}
|
|
|
|
}
|
|
|
|