From e9509dc95fc784b47796ac3ca5ae830044579ebf Mon Sep 17 00:00:00 2001 From: Brianna Date: Mon, 24 Aug 2020 13:03:43 -0500 Subject: [PATCH 1/2] Added the ability to use Int Arrays in nbt. --- NMS/NMS-API/src/com/songoda/core/nms/nbt/NBTCompound.java | 2 ++ NMS/NMS-API/src/com/songoda/core/nms/nbt/NBTObject.java | 2 ++ .../com/songoda/core/nms/v1_10_R1/nbt/NBTCompoundImpl.java | 6 ++++++ .../com/songoda/core/nms/v1_10_R1/nbt/NBTObjectImpl.java | 4 ++++ .../com/songoda/core/nms/v1_11_R1/nbt/NBTCompoundImpl.java | 6 ++++++ .../com/songoda/core/nms/v1_11_R1/nbt/NBTObjectImpl.java | 4 ++++ .../com/songoda/core/nms/v1_12_R1/nbt/NBTCompoundImpl.java | 6 ++++++ .../com/songoda/core/nms/v1_12_R1/nbt/NBTObjectImpl.java | 4 ++++ .../com/songoda/core/nms/v1_13_R1/nbt/NBTCompoundImpl.java | 6 ++++++ .../com/songoda/core/nms/v1_13_R1/nbt/NBTObjectImpl.java | 4 ++++ .../com/songoda/core/nms/v1_13_R2/nbt/NBTCompoundImpl.java | 6 ++++++ .../com/songoda/core/nms/v1_13_R2/nbt/NBTObjectImpl.java | 4 ++++ .../com/songoda/core/nms/v1_14_R1/nbt/NBTCompoundImpl.java | 6 ++++++ .../com/songoda/core/nms/v1_14_R1/nbt/NBTObjectImpl.java | 4 ++++ .../com/songoda/core/nms/v1_15_R1/nbt/NBTCompoundImpl.java | 6 ++++++ .../com/songoda/core/nms/v1_15_R1/nbt/NBTObjectImpl.java | 4 ++++ .../com/songoda/core/nms/v1_16_R1/nbt/NBTCompoundImpl.java | 6 ++++++ .../com/songoda/core/nms/v1_16_R1/nbt/NBTObjectImpl.java | 4 ++++ .../com/songoda/core/nms/v1_16_R2/nbt/NBTCompoundImpl.java | 6 ++++++ .../com/songoda/core/nms/v1_16_R2/nbt/NBTObjectImpl.java | 4 ++++ .../com/songoda/core/nms/v1_8_R1/nbt/NBTCompoundImpl.java | 6 ++++++ .../src/com/songoda/core/nms/v1_8_R1/nbt/NBTObjectImpl.java | 4 ++++ .../com/songoda/core/nms/v1_8_R2/nbt/NBTCompoundImpl.java | 6 ++++++ .../src/com/songoda/core/nms/v1_8_R2/nbt/NBTObjectImpl.java | 4 ++++ .../com/songoda/core/nms/v1_8_R3/nbt/NBTCompoundImpl.java | 6 ++++++ .../src/com/songoda/core/nms/v1_8_R3/nbt/NBTObjectImpl.java | 4 ++++ .../com/songoda/core/nms/v1_9_R1/nbt/NBTCompoundImpl.java | 6 ++++++ .../src/com/songoda/core/nms/v1_9_R1/nbt/NBTObjectImpl.java | 4 ++++ .../com/songoda/core/nms/v1_9_R2/nbt/NBTCompoundImpl.java | 6 ++++++ .../src/com/songoda/core/nms/v1_9_R2/nbt/NBTObjectImpl.java | 4 ++++ 30 files changed, 144 insertions(+) diff --git a/NMS/NMS-API/src/com/songoda/core/nms/nbt/NBTCompound.java b/NMS/NMS-API/src/com/songoda/core/nms/nbt/NBTCompound.java index b80f28fb..fdb81f91 100644 --- a/NMS/NMS-API/src/com/songoda/core/nms/nbt/NBTCompound.java +++ b/NMS/NMS-API/src/com/songoda/core/nms/nbt/NBTCompound.java @@ -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); diff --git a/NMS/NMS-API/src/com/songoda/core/nms/nbt/NBTObject.java b/NMS/NMS-API/src/com/songoda/core/nms/nbt/NBTObject.java index c8c2017d..41ee4109 100644 --- a/NMS/NMS-API/src/com/songoda/core/nms/nbt/NBTObject.java +++ b/NMS/NMS-API/src/com/songoda/core/nms/nbt/NBTObject.java @@ -15,4 +15,6 @@ public interface NBTObject { short asShort(); byte asByte(); + + int[] asIntArray(); } diff --git a/NMS/NMS-v1_10_R1/src/com/songoda/core/nms/v1_10_R1/nbt/NBTCompoundImpl.java b/NMS/NMS-v1_10_R1/src/com/songoda/core/nms/v1_10_R1/nbt/NBTCompoundImpl.java index feb6829c..a0ad6be6 100644 --- a/NMS/NMS-v1_10_R1/src/com/songoda/core/nms/v1_10_R1/nbt/NBTCompoundImpl.java +++ b/NMS/NMS-v1_10_R1/src/com/songoda/core/nms/v1_10_R1/nbt/NBTCompoundImpl.java @@ -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); diff --git a/NMS/NMS-v1_10_R1/src/com/songoda/core/nms/v1_10_R1/nbt/NBTObjectImpl.java b/NMS/NMS-v1_10_R1/src/com/songoda/core/nms/v1_10_R1/nbt/NBTObjectImpl.java index 34484fb1..3772e51b 100644 --- a/NMS/NMS-v1_10_R1/src/com/songoda/core/nms/v1_10_R1/nbt/NBTObjectImpl.java +++ b/NMS/NMS-v1_10_R1/src/com/songoda/core/nms/v1_10_R1/nbt/NBTObjectImpl.java @@ -41,4 +41,8 @@ public class NBTObjectImpl implements NBTObject { return compound.getByte(tag); } + public int[] asIntArray() { + return compound.getIntArray(tag); + } + } diff --git a/NMS/NMS-v1_11_R1/src/com/songoda/core/nms/v1_11_R1/nbt/NBTCompoundImpl.java b/NMS/NMS-v1_11_R1/src/com/songoda/core/nms/v1_11_R1/nbt/NBTCompoundImpl.java index 051fac0b..8815c085 100644 --- a/NMS/NMS-v1_11_R1/src/com/songoda/core/nms/v1_11_R1/nbt/NBTCompoundImpl.java +++ b/NMS/NMS-v1_11_R1/src/com/songoda/core/nms/v1_11_R1/nbt/NBTCompoundImpl.java @@ -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); diff --git a/NMS/NMS-v1_11_R1/src/com/songoda/core/nms/v1_11_R1/nbt/NBTObjectImpl.java b/NMS/NMS-v1_11_R1/src/com/songoda/core/nms/v1_11_R1/nbt/NBTObjectImpl.java index 46d4e4c4..cee7cd02 100644 --- a/NMS/NMS-v1_11_R1/src/com/songoda/core/nms/v1_11_R1/nbt/NBTObjectImpl.java +++ b/NMS/NMS-v1_11_R1/src/com/songoda/core/nms/v1_11_R1/nbt/NBTObjectImpl.java @@ -41,4 +41,8 @@ public class NBTObjectImpl implements NBTObject { return compound.getByte(tag); } + public int[] asIntArray() { + return compound.getIntArray(tag); + } + } diff --git a/NMS/NMS-v1_12_R1/src/com/songoda/core/nms/v1_12_R1/nbt/NBTCompoundImpl.java b/NMS/NMS-v1_12_R1/src/com/songoda/core/nms/v1_12_R1/nbt/NBTCompoundImpl.java index 13743bbc..7a3c146f 100644 --- a/NMS/NMS-v1_12_R1/src/com/songoda/core/nms/v1_12_R1/nbt/NBTCompoundImpl.java +++ b/NMS/NMS-v1_12_R1/src/com/songoda/core/nms/v1_12_R1/nbt/NBTCompoundImpl.java @@ -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); diff --git a/NMS/NMS-v1_12_R1/src/com/songoda/core/nms/v1_12_R1/nbt/NBTObjectImpl.java b/NMS/NMS-v1_12_R1/src/com/songoda/core/nms/v1_12_R1/nbt/NBTObjectImpl.java index 61faa905..a26429ca 100644 --- a/NMS/NMS-v1_12_R1/src/com/songoda/core/nms/v1_12_R1/nbt/NBTObjectImpl.java +++ b/NMS/NMS-v1_12_R1/src/com/songoda/core/nms/v1_12_R1/nbt/NBTObjectImpl.java @@ -41,4 +41,8 @@ public class NBTObjectImpl implements NBTObject { return compound.getByte(tag); } + public int[] asIntArray() { + return compound.getIntArray(tag); + } + } diff --git a/NMS/NMS-v1_13_R1/src/com/songoda/core/nms/v1_13_R1/nbt/NBTCompoundImpl.java b/NMS/NMS-v1_13_R1/src/com/songoda/core/nms/v1_13_R1/nbt/NBTCompoundImpl.java index 74ae71d3..69729b9b 100644 --- a/NMS/NMS-v1_13_R1/src/com/songoda/core/nms/v1_13_R1/nbt/NBTCompoundImpl.java +++ b/NMS/NMS-v1_13_R1/src/com/songoda/core/nms/v1_13_R1/nbt/NBTCompoundImpl.java @@ -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); diff --git a/NMS/NMS-v1_13_R1/src/com/songoda/core/nms/v1_13_R1/nbt/NBTObjectImpl.java b/NMS/NMS-v1_13_R1/src/com/songoda/core/nms/v1_13_R1/nbt/NBTObjectImpl.java index 0d9b1d7e..02b8988b 100644 --- a/NMS/NMS-v1_13_R1/src/com/songoda/core/nms/v1_13_R1/nbt/NBTObjectImpl.java +++ b/NMS/NMS-v1_13_R1/src/com/songoda/core/nms/v1_13_R1/nbt/NBTObjectImpl.java @@ -41,4 +41,8 @@ public class NBTObjectImpl implements NBTObject { return compound.getByte(tag); } + public int[] asIntArray() { + return compound.getIntArray(tag); + } + } diff --git a/NMS/NMS-v1_13_R2/src/com/songoda/core/nms/v1_13_R2/nbt/NBTCompoundImpl.java b/NMS/NMS-v1_13_R2/src/com/songoda/core/nms/v1_13_R2/nbt/NBTCompoundImpl.java index 7b00acc4..ab403801 100644 --- a/NMS/NMS-v1_13_R2/src/com/songoda/core/nms/v1_13_R2/nbt/NBTCompoundImpl.java +++ b/NMS/NMS-v1_13_R2/src/com/songoda/core/nms/v1_13_R2/nbt/NBTCompoundImpl.java @@ -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); diff --git a/NMS/NMS-v1_13_R2/src/com/songoda/core/nms/v1_13_R2/nbt/NBTObjectImpl.java b/NMS/NMS-v1_13_R2/src/com/songoda/core/nms/v1_13_R2/nbt/NBTObjectImpl.java index c5a74103..5f88315c 100644 --- a/NMS/NMS-v1_13_R2/src/com/songoda/core/nms/v1_13_R2/nbt/NBTObjectImpl.java +++ b/NMS/NMS-v1_13_R2/src/com/songoda/core/nms/v1_13_R2/nbt/NBTObjectImpl.java @@ -41,4 +41,8 @@ public class NBTObjectImpl implements NBTObject { return compound.getByte(tag); } + public int[] asIntArray() { + return compound.getIntArray(tag); + } + } diff --git a/NMS/NMS-v1_14_R1/src/com/songoda/core/nms/v1_14_R1/nbt/NBTCompoundImpl.java b/NMS/NMS-v1_14_R1/src/com/songoda/core/nms/v1_14_R1/nbt/NBTCompoundImpl.java index 1b1c3d93..6c38741f 100644 --- a/NMS/NMS-v1_14_R1/src/com/songoda/core/nms/v1_14_R1/nbt/NBTCompoundImpl.java +++ b/NMS/NMS-v1_14_R1/src/com/songoda/core/nms/v1_14_R1/nbt/NBTCompoundImpl.java @@ -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); diff --git a/NMS/NMS-v1_14_R1/src/com/songoda/core/nms/v1_14_R1/nbt/NBTObjectImpl.java b/NMS/NMS-v1_14_R1/src/com/songoda/core/nms/v1_14_R1/nbt/NBTObjectImpl.java index 6b0b5b36..436ff1f1 100644 --- a/NMS/NMS-v1_14_R1/src/com/songoda/core/nms/v1_14_R1/nbt/NBTObjectImpl.java +++ b/NMS/NMS-v1_14_R1/src/com/songoda/core/nms/v1_14_R1/nbt/NBTObjectImpl.java @@ -41,4 +41,8 @@ public class NBTObjectImpl implements NBTObject { return compound.getByte(tag); } + public int[] asIntArray() { + return compound.getIntArray(tag); + } + } diff --git a/NMS/NMS-v1_15_R1/src/com/songoda/core/nms/v1_15_R1/nbt/NBTCompoundImpl.java b/NMS/NMS-v1_15_R1/src/com/songoda/core/nms/v1_15_R1/nbt/NBTCompoundImpl.java index cdbd2215..bd3ebfb8 100644 --- a/NMS/NMS-v1_15_R1/src/com/songoda/core/nms/v1_15_R1/nbt/NBTCompoundImpl.java +++ b/NMS/NMS-v1_15_R1/src/com/songoda/core/nms/v1_15_R1/nbt/NBTCompoundImpl.java @@ -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); diff --git a/NMS/NMS-v1_15_R1/src/com/songoda/core/nms/v1_15_R1/nbt/NBTObjectImpl.java b/NMS/NMS-v1_15_R1/src/com/songoda/core/nms/v1_15_R1/nbt/NBTObjectImpl.java index f0f0afba..e7ae2569 100644 --- a/NMS/NMS-v1_15_R1/src/com/songoda/core/nms/v1_15_R1/nbt/NBTObjectImpl.java +++ b/NMS/NMS-v1_15_R1/src/com/songoda/core/nms/v1_15_R1/nbt/NBTObjectImpl.java @@ -41,4 +41,8 @@ public class NBTObjectImpl implements NBTObject { return compound.getByte(tag); } + public int[] asIntArray() { + return compound.getIntArray(tag); + } + } diff --git a/NMS/NMS-v1_16_R1/src/com/songoda/core/nms/v1_16_R1/nbt/NBTCompoundImpl.java b/NMS/NMS-v1_16_R1/src/com/songoda/core/nms/v1_16_R1/nbt/NBTCompoundImpl.java index 6727d77a..ae69aa38 100644 --- a/NMS/NMS-v1_16_R1/src/com/songoda/core/nms/v1_16_R1/nbt/NBTCompoundImpl.java +++ b/NMS/NMS-v1_16_R1/src/com/songoda/core/nms/v1_16_R1/nbt/NBTCompoundImpl.java @@ -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); diff --git a/NMS/NMS-v1_16_R1/src/com/songoda/core/nms/v1_16_R1/nbt/NBTObjectImpl.java b/NMS/NMS-v1_16_R1/src/com/songoda/core/nms/v1_16_R1/nbt/NBTObjectImpl.java index 65aeaa7b..25b685e1 100644 --- a/NMS/NMS-v1_16_R1/src/com/songoda/core/nms/v1_16_R1/nbt/NBTObjectImpl.java +++ b/NMS/NMS-v1_16_R1/src/com/songoda/core/nms/v1_16_R1/nbt/NBTObjectImpl.java @@ -41,4 +41,8 @@ public class NBTObjectImpl implements NBTObject { return compound.getByte(tag); } + public int[] asIntArray() { + return compound.getIntArray(tag); + } + } diff --git a/NMS/NMS-v1_16_R2/src/com/songoda/core/nms/v1_16_R2/nbt/NBTCompoundImpl.java b/NMS/NMS-v1_16_R2/src/com/songoda/core/nms/v1_16_R2/nbt/NBTCompoundImpl.java index 8e5bb32f..39b54fba 100644 --- a/NMS/NMS-v1_16_R2/src/com/songoda/core/nms/v1_16_R2/nbt/NBTCompoundImpl.java +++ b/NMS/NMS-v1_16_R2/src/com/songoda/core/nms/v1_16_R2/nbt/NBTCompoundImpl.java @@ -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); diff --git a/NMS/NMS-v1_16_R2/src/com/songoda/core/nms/v1_16_R2/nbt/NBTObjectImpl.java b/NMS/NMS-v1_16_R2/src/com/songoda/core/nms/v1_16_R2/nbt/NBTObjectImpl.java index f396375d..cdbc79b5 100644 --- a/NMS/NMS-v1_16_R2/src/com/songoda/core/nms/v1_16_R2/nbt/NBTObjectImpl.java +++ b/NMS/NMS-v1_16_R2/src/com/songoda/core/nms/v1_16_R2/nbt/NBTObjectImpl.java @@ -41,4 +41,8 @@ public class NBTObjectImpl implements NBTObject { return compound.getByte(tag); } + public int[] asIntArray() { + return compound.getIntArray(tag); + } + } diff --git a/NMS/NMS-v1_8_R1/src/com/songoda/core/nms/v1_8_R1/nbt/NBTCompoundImpl.java b/NMS/NMS-v1_8_R1/src/com/songoda/core/nms/v1_8_R1/nbt/NBTCompoundImpl.java index 4782ee49..8cd5a62e 100644 --- a/NMS/NMS-v1_8_R1/src/com/songoda/core/nms/v1_8_R1/nbt/NBTCompoundImpl.java +++ b/NMS/NMS-v1_8_R1/src/com/songoda/core/nms/v1_8_R1/nbt/NBTCompoundImpl.java @@ -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); diff --git a/NMS/NMS-v1_8_R1/src/com/songoda/core/nms/v1_8_R1/nbt/NBTObjectImpl.java b/NMS/NMS-v1_8_R1/src/com/songoda/core/nms/v1_8_R1/nbt/NBTObjectImpl.java index 4aab278d..6089394f 100644 --- a/NMS/NMS-v1_8_R1/src/com/songoda/core/nms/v1_8_R1/nbt/NBTObjectImpl.java +++ b/NMS/NMS-v1_8_R1/src/com/songoda/core/nms/v1_8_R1/nbt/NBTObjectImpl.java @@ -41,4 +41,8 @@ public class NBTObjectImpl implements NBTObject { return compound.getByte(tag); } + public int[] asIntArray() { + return compound.getIntArray(tag); + } + } diff --git a/NMS/NMS-v1_8_R2/src/com/songoda/core/nms/v1_8_R2/nbt/NBTCompoundImpl.java b/NMS/NMS-v1_8_R2/src/com/songoda/core/nms/v1_8_R2/nbt/NBTCompoundImpl.java index 9984b805..fb314c88 100644 --- a/NMS/NMS-v1_8_R2/src/com/songoda/core/nms/v1_8_R2/nbt/NBTCompoundImpl.java +++ b/NMS/NMS-v1_8_R2/src/com/songoda/core/nms/v1_8_R2/nbt/NBTCompoundImpl.java @@ -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); diff --git a/NMS/NMS-v1_8_R2/src/com/songoda/core/nms/v1_8_R2/nbt/NBTObjectImpl.java b/NMS/NMS-v1_8_R2/src/com/songoda/core/nms/v1_8_R2/nbt/NBTObjectImpl.java index 74efd0fe..e0095ada 100644 --- a/NMS/NMS-v1_8_R2/src/com/songoda/core/nms/v1_8_R2/nbt/NBTObjectImpl.java +++ b/NMS/NMS-v1_8_R2/src/com/songoda/core/nms/v1_8_R2/nbt/NBTObjectImpl.java @@ -41,4 +41,8 @@ public class NBTObjectImpl implements NBTObject { return compound.getByte(tag); } + public int[] asIntArray() { + return compound.getIntArray(tag); + } + } diff --git a/NMS/NMS-v1_8_R3/src/com/songoda/core/nms/v1_8_R3/nbt/NBTCompoundImpl.java b/NMS/NMS-v1_8_R3/src/com/songoda/core/nms/v1_8_R3/nbt/NBTCompoundImpl.java index f0a8f794..58fd5d44 100644 --- a/NMS/NMS-v1_8_R3/src/com/songoda/core/nms/v1_8_R3/nbt/NBTCompoundImpl.java +++ b/NMS/NMS-v1_8_R3/src/com/songoda/core/nms/v1_8_R3/nbt/NBTCompoundImpl.java @@ -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); diff --git a/NMS/NMS-v1_8_R3/src/com/songoda/core/nms/v1_8_R3/nbt/NBTObjectImpl.java b/NMS/NMS-v1_8_R3/src/com/songoda/core/nms/v1_8_R3/nbt/NBTObjectImpl.java index 61a57590..e0f95b1a 100644 --- a/NMS/NMS-v1_8_R3/src/com/songoda/core/nms/v1_8_R3/nbt/NBTObjectImpl.java +++ b/NMS/NMS-v1_8_R3/src/com/songoda/core/nms/v1_8_R3/nbt/NBTObjectImpl.java @@ -41,4 +41,8 @@ public class NBTObjectImpl implements NBTObject { return compound.getByte(tag); } + public int[] asIntArray() { + return compound.getIntArray(tag); + } + } diff --git a/NMS/NMS-v1_9_R1/src/com/songoda/core/nms/v1_9_R1/nbt/NBTCompoundImpl.java b/NMS/NMS-v1_9_R1/src/com/songoda/core/nms/v1_9_R1/nbt/NBTCompoundImpl.java index 2ae9994a..7e51e7f8 100644 --- a/NMS/NMS-v1_9_R1/src/com/songoda/core/nms/v1_9_R1/nbt/NBTCompoundImpl.java +++ b/NMS/NMS-v1_9_R1/src/com/songoda/core/nms/v1_9_R1/nbt/NBTCompoundImpl.java @@ -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); diff --git a/NMS/NMS-v1_9_R1/src/com/songoda/core/nms/v1_9_R1/nbt/NBTObjectImpl.java b/NMS/NMS-v1_9_R1/src/com/songoda/core/nms/v1_9_R1/nbt/NBTObjectImpl.java index 7fdc689d..1834fc2e 100644 --- a/NMS/NMS-v1_9_R1/src/com/songoda/core/nms/v1_9_R1/nbt/NBTObjectImpl.java +++ b/NMS/NMS-v1_9_R1/src/com/songoda/core/nms/v1_9_R1/nbt/NBTObjectImpl.java @@ -41,4 +41,8 @@ public class NBTObjectImpl implements NBTObject { return compound.getByte(tag); } + public int[] asIntArray() { + return compound.getIntArray(tag); + } + } diff --git a/NMS/NMS-v1_9_R2/src/com/songoda/core/nms/v1_9_R2/nbt/NBTCompoundImpl.java b/NMS/NMS-v1_9_R2/src/com/songoda/core/nms/v1_9_R2/nbt/NBTCompoundImpl.java index ea9677d3..d05d687e 100644 --- a/NMS/NMS-v1_9_R2/src/com/songoda/core/nms/v1_9_R2/nbt/NBTCompoundImpl.java +++ b/NMS/NMS-v1_9_R2/src/com/songoda/core/nms/v1_9_R2/nbt/NBTCompoundImpl.java @@ -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); diff --git a/NMS/NMS-v1_9_R2/src/com/songoda/core/nms/v1_9_R2/nbt/NBTObjectImpl.java b/NMS/NMS-v1_9_R2/src/com/songoda/core/nms/v1_9_R2/nbt/NBTObjectImpl.java index 0615a05f..658631f8 100644 --- a/NMS/NMS-v1_9_R2/src/com/songoda/core/nms/v1_9_R2/nbt/NBTObjectImpl.java +++ b/NMS/NMS-v1_9_R2/src/com/songoda/core/nms/v1_9_R2/nbt/NBTObjectImpl.java @@ -41,4 +41,8 @@ public class NBTObjectImpl implements NBTObject { return compound.getByte(tag); } + public int[] asIntArray() { + return compound.getIntArray(tag); + } + } From 186b61fb2ae5ef70f57fec8bc6918d8172861460 Mon Sep 17 00:00:00 2001 From: Brianna Date: Mon, 24 Aug 2020 13:04:04 -0500 Subject: [PATCH 2/2] version 2.4.1 --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 1deb4081..81f24023 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -4,7 +4,7 @@ stages: variables: name: "SongodaCore" path: "/builds/$CI_PROJECT_PATH" - version: "2.4" + version: "2.4.1" build: stage: build