mirror of
https://github.com/songoda/SongodaCore.git
synced 2024-10-22 12:20:26 +02:00
Added the ability to use Int Arrays in nbt.
This commit is contained in:
parent
8c6c9b1daf
commit
e9509dc95f
@ -16,6 +16,8 @@ public interface NBTCompound {
|
||||
|
||||
NBTCompound set(String tag, byte b);
|
||||
|
||||
NBTCompound set(String tag, int[] i);
|
||||
|
||||
NBTCompound remove(String tag);
|
||||
|
||||
boolean has(String tag);
|
||||
|
@ -15,4 +15,6 @@ public interface NBTObject {
|
||||
short asShort();
|
||||
|
||||
byte asByte();
|
||||
|
||||
int[] asIntArray();
|
||||
}
|
||||
|
@ -61,6 +61,12 @@ public abstract class NBTCompoundImpl implements NBTCompound {
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public NBTCompound set(String tag, int[] i) {
|
||||
compound.setIntArray(tag, i);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public NBTCompound remove(String tag) {
|
||||
compound.remove(tag);
|
||||
|
@ -41,4 +41,8 @@ public class NBTObjectImpl implements NBTObject {
|
||||
return compound.getByte(tag);
|
||||
}
|
||||
|
||||
public int[] asIntArray() {
|
||||
return compound.getIntArray(tag);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -61,6 +61,12 @@ public abstract class NBTCompoundImpl implements NBTCompound {
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public NBTCompound set(String tag, int[] i) {
|
||||
compound.setIntArray(tag, i);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public NBTCompound remove(String tag) {
|
||||
compound.remove(tag);
|
||||
|
@ -41,4 +41,8 @@ public class NBTObjectImpl implements NBTObject {
|
||||
return compound.getByte(tag);
|
||||
}
|
||||
|
||||
public int[] asIntArray() {
|
||||
return compound.getIntArray(tag);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -61,6 +61,12 @@ public abstract class NBTCompoundImpl implements NBTCompound {
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public NBTCompound set(String tag, int[] i) {
|
||||
compound.setIntArray(tag, i);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public NBTCompound remove(String tag) {
|
||||
compound.remove(tag);
|
||||
|
@ -41,4 +41,8 @@ public class NBTObjectImpl implements NBTObject {
|
||||
return compound.getByte(tag);
|
||||
}
|
||||
|
||||
public int[] asIntArray() {
|
||||
return compound.getIntArray(tag);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -61,6 +61,12 @@ public abstract class NBTCompoundImpl implements NBTCompound {
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public NBTCompound set(String tag, int[] i) {
|
||||
compound.setIntArray(tag, i);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public NBTCompound remove(String tag) {
|
||||
compound.remove(tag);
|
||||
|
@ -41,4 +41,8 @@ public class NBTObjectImpl implements NBTObject {
|
||||
return compound.getByte(tag);
|
||||
}
|
||||
|
||||
public int[] asIntArray() {
|
||||
return compound.getIntArray(tag);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -61,6 +61,12 @@ public abstract class NBTCompoundImpl implements NBTCompound {
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public NBTCompound set(String tag, int[] i) {
|
||||
compound.setIntArray(tag, i);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public NBTCompound remove(String tag) {
|
||||
compound.remove(tag);
|
||||
|
@ -41,4 +41,8 @@ public class NBTObjectImpl implements NBTObject {
|
||||
return compound.getByte(tag);
|
||||
}
|
||||
|
||||
public int[] asIntArray() {
|
||||
return compound.getIntArray(tag);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -61,6 +61,12 @@ public abstract class NBTCompoundImpl implements NBTCompound {
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public NBTCompound set(String tag, int[] i) {
|
||||
compound.setIntArray(tag, i);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public NBTCompound remove(String tag) {
|
||||
compound.remove(tag);
|
||||
|
@ -41,4 +41,8 @@ public class NBTObjectImpl implements NBTObject {
|
||||
return compound.getByte(tag);
|
||||
}
|
||||
|
||||
public int[] asIntArray() {
|
||||
return compound.getIntArray(tag);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -61,6 +61,12 @@ public abstract class NBTCompoundImpl implements NBTCompound {
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public NBTCompound set(String tag, int[] i) {
|
||||
compound.setIntArray(tag, i);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public NBTCompound remove(String tag) {
|
||||
compound.remove(tag);
|
||||
|
@ -41,4 +41,8 @@ public class NBTObjectImpl implements NBTObject {
|
||||
return compound.getByte(tag);
|
||||
}
|
||||
|
||||
public int[] asIntArray() {
|
||||
return compound.getIntArray(tag);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -61,6 +61,12 @@ public abstract class NBTCompoundImpl implements NBTCompound {
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public NBTCompound set(String tag, int[] i) {
|
||||
compound.setIntArray(tag, i);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public NBTCompound remove(String tag) {
|
||||
compound.remove(tag);
|
||||
|
@ -41,4 +41,8 @@ public class NBTObjectImpl implements NBTObject {
|
||||
return compound.getByte(tag);
|
||||
}
|
||||
|
||||
public int[] asIntArray() {
|
||||
return compound.getIntArray(tag);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -61,6 +61,12 @@ public abstract class NBTCompoundImpl implements NBTCompound {
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public NBTCompound set(String tag, int[] i) {
|
||||
compound.setIntArray(tag, i);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public NBTCompound remove(String tag) {
|
||||
compound.remove(tag);
|
||||
|
@ -41,4 +41,8 @@ public class NBTObjectImpl implements NBTObject {
|
||||
return compound.getByte(tag);
|
||||
}
|
||||
|
||||
public int[] asIntArray() {
|
||||
return compound.getIntArray(tag);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -61,6 +61,12 @@ public abstract class NBTCompoundImpl implements NBTCompound {
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public NBTCompound set(String tag, int[] i) {
|
||||
compound.setIntArray(tag, i);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public NBTCompound remove(String tag) {
|
||||
compound.remove(tag);
|
||||
|
@ -41,4 +41,8 @@ public class NBTObjectImpl implements NBTObject {
|
||||
return compound.getByte(tag);
|
||||
}
|
||||
|
||||
public int[] asIntArray() {
|
||||
return compound.getIntArray(tag);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -61,6 +61,12 @@ public abstract class NBTCompoundImpl implements NBTCompound {
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public NBTCompound set(String tag, int[] i) {
|
||||
compound.setIntArray(tag, i);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public NBTCompound remove(String tag) {
|
||||
compound.remove(tag);
|
||||
|
@ -41,4 +41,8 @@ public class NBTObjectImpl implements NBTObject {
|
||||
return compound.getByte(tag);
|
||||
}
|
||||
|
||||
public int[] asIntArray() {
|
||||
return compound.getIntArray(tag);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -61,6 +61,12 @@ public abstract class NBTCompoundImpl implements NBTCompound {
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public NBTCompound set(String tag, int[] i) {
|
||||
compound.setIntArray(tag, i);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public NBTCompound remove(String tag) {
|
||||
compound.remove(tag);
|
||||
|
@ -41,4 +41,8 @@ public class NBTObjectImpl implements NBTObject {
|
||||
return compound.getByte(tag);
|
||||
}
|
||||
|
||||
public int[] asIntArray() {
|
||||
return compound.getIntArray(tag);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -61,6 +61,12 @@ public abstract class NBTCompoundImpl implements NBTCompound {
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public NBTCompound set(String tag, int[] i) {
|
||||
compound.setIntArray(tag, i);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public NBTCompound remove(String tag) {
|
||||
compound.remove(tag);
|
||||
|
@ -41,4 +41,8 @@ public class NBTObjectImpl implements NBTObject {
|
||||
return compound.getByte(tag);
|
||||
}
|
||||
|
||||
public int[] asIntArray() {
|
||||
return compound.getIntArray(tag);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -61,6 +61,12 @@ public abstract class NBTCompoundImpl implements NBTCompound {
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public NBTCompound set(String tag, int[] i) {
|
||||
compound.setIntArray(tag, i);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public NBTCompound remove(String tag) {
|
||||
compound.remove(tag);
|
||||
|
@ -41,4 +41,8 @@ public class NBTObjectImpl implements NBTObject {
|
||||
return compound.getByte(tag);
|
||||
}
|
||||
|
||||
public int[] asIntArray() {
|
||||
return compound.getIntArray(tag);
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user