diff --git a/Core/pom.xml b/Core/pom.xml index 17b8993f..a70888dc 100644 --- a/Core/pom.xml +++ b/Core/pom.xml @@ -3,7 +3,7 @@ com.songoda SongodaCore-Modules - 2.4.13 + 2.4.14 ../ diff --git a/Core/src/main/java/com/songoda/core/SongodaCore.java b/Core/src/main/java/com/songoda/core/SongodaCore.java index dc80d7d9..e4e1c533 100644 --- a/Core/src/main/java/com/songoda/core/SongodaCore.java +++ b/Core/src/main/java/com/songoda/core/SongodaCore.java @@ -54,7 +54,7 @@ public class SongodaCore { /** * This has been added as of Rev 6 */ - private final static String coreVersion = "2.4.13"; + private final static String coreVersion = "2.4.14"; /** * This is specific to the website api diff --git a/NMS/NMS-API/pom.xml b/NMS/NMS-API/pom.xml index b6cf8a22..637dcd8b 100644 --- a/NMS/NMS-API/pom.xml +++ b/NMS/NMS-API/pom.xml @@ -3,7 +3,7 @@ com.songoda SongodaCore-Modules - 2.4.13 + 2.4.14 ../../ 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 9a4b8cbb..7bd47801 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 @@ -45,6 +45,8 @@ public interface NBTCompound { int[] getIntArray(String tag); + NBTCompound getCompound(String tag); + Set getKeys(); Set getKeys(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 ed71d932..8fa3fbae 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 @@ -22,5 +22,5 @@ public interface NBTObject { Set getKeys(); - NBTCompound getCompound(String tag); + NBTCompound asCompound(); } diff --git a/NMS/NMS-v1_10_R1/pom.xml b/NMS/NMS-v1_10_R1/pom.xml index 3e0506ce..d9a43582 100644 --- a/NMS/NMS-v1_10_R1/pom.xml +++ b/NMS/NMS-v1_10_R1/pom.xml @@ -3,7 +3,7 @@ com.songoda SongodaCore-Modules - 2.4.13 + 2.4.14 ../../ 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 13908a84..05f1deb8 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 @@ -136,6 +136,11 @@ public class NBTCompoundImpl implements NBTCompound { return getNBTObject(tag).asIntArray(); } + @Override + public NBTCompound getCompound(String tag) { + return getNBTObject(tag).asCompound(); + } + @Override public Set getKeys() { return compound.c(); 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 c794926c..8bad61b3 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 @@ -62,7 +62,7 @@ public class NBTObjectImpl implements NBTObject { } @Override - public NBTCompound getCompound(String tag) { + public NBTCompound asCompound() { return new NBTCompoundImpl(compound.getCompound(tag)); } } diff --git a/NMS/NMS-v1_11_R1/pom.xml b/NMS/NMS-v1_11_R1/pom.xml index 2aaf0418..a4caa2d8 100644 --- a/NMS/NMS-v1_11_R1/pom.xml +++ b/NMS/NMS-v1_11_R1/pom.xml @@ -3,7 +3,7 @@ com.songoda SongodaCore-Modules - 2.4.13 + 2.4.14 ../../ 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 2cc17260..82131e62 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 @@ -136,6 +136,11 @@ public class NBTCompoundImpl implements NBTCompound { return getNBTObject(tag).asIntArray(); } + @Override + public NBTCompound getCompound(String tag) { + return getNBTObject(tag).asCompound(); + } + @Override public Set getKeys() { return compound.c(); 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 2966692a..0b2a71b8 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 @@ -62,7 +62,7 @@ public class NBTObjectImpl implements NBTObject { } @Override - public NBTCompound getCompound(String tag) { + public NBTCompound asCompound() { return new NBTCompoundImpl(compound.getCompound(tag)); } } diff --git a/NMS/NMS-v1_12_R1/pom.xml b/NMS/NMS-v1_12_R1/pom.xml index d2025661..c63039ef 100644 --- a/NMS/NMS-v1_12_R1/pom.xml +++ b/NMS/NMS-v1_12_R1/pom.xml @@ -3,7 +3,7 @@ com.songoda SongodaCore-Modules - 2.4.13 + 2.4.14 ../../ 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 f015f13c..0c3b0b73 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 @@ -136,6 +136,11 @@ public class NBTCompoundImpl implements NBTCompound { return getNBTObject(tag).asIntArray(); } + @Override + public NBTCompound getCompound(String tag) { + return getNBTObject(tag).asCompound(); + } + @Override public Set getKeys() { return compound.c(); 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 81b9989c..16b5ab1a 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 @@ -62,7 +62,7 @@ public class NBTObjectImpl implements NBTObject { } @Override - public NBTCompound getCompound(String tag) { + public NBTCompound asCompound() { return new NBTCompoundImpl(compound.getCompound(tag)); } } diff --git a/NMS/NMS-v1_13_R1/pom.xml b/NMS/NMS-v1_13_R1/pom.xml index 847322a1..5b1964b2 100644 --- a/NMS/NMS-v1_13_R1/pom.xml +++ b/NMS/NMS-v1_13_R1/pom.xml @@ -3,7 +3,7 @@ com.songoda SongodaCore-Modules - 2.4.13 + 2.4.14 ../../ 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 ccccac20..b37a2188 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 @@ -136,6 +136,11 @@ public class NBTCompoundImpl implements NBTCompound { return getNBTObject(tag).asIntArray(); } + @Override + public NBTCompound getCompound(String tag) { + return getNBTObject(tag).asCompound(); + } + @Override public Set getKeys() { return compound.getKeys(); 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 d50adb9c..dbd85039 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 @@ -62,7 +62,7 @@ public class NBTObjectImpl implements NBTObject { } @Override - public NBTCompound getCompound(String tag) { + public NBTCompound asCompound() { return new NBTCompoundImpl(compound.getCompound(tag)); } } diff --git a/NMS/NMS-v1_13_R2/pom.xml b/NMS/NMS-v1_13_R2/pom.xml index 76e5d6fb..0fc7dd38 100644 --- a/NMS/NMS-v1_13_R2/pom.xml +++ b/NMS/NMS-v1_13_R2/pom.xml @@ -3,7 +3,7 @@ com.songoda SongodaCore-Modules - 2.4.13 + 2.4.14 ../../ 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 9227fdb7..c17875cd 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 @@ -136,6 +136,11 @@ public class NBTCompoundImpl implements NBTCompound { return getNBTObject(tag).asIntArray(); } + @Override + public NBTCompound getCompound(String tag) { + return getNBTObject(tag).asCompound(); + } + @Override public Set getKeys() { return compound.getKeys(); 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 d95f85b9..46c039de 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 @@ -62,7 +62,7 @@ public class NBTObjectImpl implements NBTObject { } @Override - public NBTCompound getCompound(String tag) { + public NBTCompound asCompound() { return new NBTCompoundImpl(compound.getCompound(tag)); } } diff --git a/NMS/NMS-v1_14_R1/pom.xml b/NMS/NMS-v1_14_R1/pom.xml index b163668e..027b0d7d 100644 --- a/NMS/NMS-v1_14_R1/pom.xml +++ b/NMS/NMS-v1_14_R1/pom.xml @@ -3,7 +3,7 @@ com.songoda SongodaCore-Modules - 2.4.13 + 2.4.14 ../../ 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 e9b6402e..cfdde057 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 @@ -136,6 +136,11 @@ public class NBTCompoundImpl implements NBTCompound { return getNBTObject(tag).asIntArray(); } + @Override + public NBTCompound getCompound(String tag) { + return getNBTObject(tag).asCompound(); + } + @Override public Set getKeys() { return compound.getKeys(); 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 e3530d1c..aa94d266 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 @@ -62,7 +62,7 @@ public class NBTObjectImpl implements NBTObject { } @Override - public NBTCompound getCompound(String tag) { + public NBTCompound asCompound() { return new NBTCompoundImpl(compound.getCompound(tag)); } } diff --git a/NMS/NMS-v1_15_R1/pom.xml b/NMS/NMS-v1_15_R1/pom.xml index 778fdf0e..57b98fdd 100644 --- a/NMS/NMS-v1_15_R1/pom.xml +++ b/NMS/NMS-v1_15_R1/pom.xml @@ -3,7 +3,7 @@ com.songoda SongodaCore-Modules - 2.4.13 + 2.4.14 ../../ 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 99181fc2..1337a4a0 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 @@ -136,6 +136,11 @@ public class NBTCompoundImpl implements NBTCompound { return getNBTObject(tag).asIntArray(); } + @Override + public NBTCompound getCompound(String tag) { + return getNBTObject(tag).asCompound(); + } + @Override public Set getKeys() { return compound.getKeys(); 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 e647b7b6..3a76e153 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 @@ -62,7 +62,7 @@ public class NBTObjectImpl implements NBTObject { } @Override - public NBTCompound getCompound(String tag) { + public NBTCompound asCompound() { return new NBTCompoundImpl(compound.getCompound(tag)); } } diff --git a/NMS/NMS-v1_16_R1/pom.xml b/NMS/NMS-v1_16_R1/pom.xml index 8e27c03e..c5e14ce0 100644 --- a/NMS/NMS-v1_16_R1/pom.xml +++ b/NMS/NMS-v1_16_R1/pom.xml @@ -3,7 +3,7 @@ com.songoda SongodaCore-Modules - 2.4.13 + 2.4.14 ../../ 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 93e0972e..290539dc 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 @@ -136,6 +136,11 @@ public class NBTCompoundImpl implements NBTCompound { return getNBTObject(tag).asIntArray(); } + @Override + public NBTCompound getCompound(String tag) { + return getNBTObject(tag).asCompound(); + } + @Override public Set getKeys() { return compound.getKeys(); 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 2015b215..31066453 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 @@ -62,7 +62,7 @@ public class NBTObjectImpl implements NBTObject { } @Override - public NBTCompound getCompound(String tag) { + public NBTCompound asCompound() { return new NBTCompoundImpl(compound.getCompound(tag)); } } diff --git a/NMS/NMS-v1_16_R2/pom.xml b/NMS/NMS-v1_16_R2/pom.xml index 31fbc58e..2a167bbc 100644 --- a/NMS/NMS-v1_16_R2/pom.xml +++ b/NMS/NMS-v1_16_R2/pom.xml @@ -3,7 +3,7 @@ com.songoda SongodaCore-Modules - 2.4.13 + 2.4.14 ../../ 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 5659620e..c5b033b4 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 @@ -136,6 +136,11 @@ public class NBTCompoundImpl implements NBTCompound { return getNBTObject(tag).asIntArray(); } + @Override + public NBTCompound getCompound(String tag) { + return getNBTObject(tag).asCompound(); + } + @Override public Set getKeys() { return compound.getKeys(); 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 2c8f9c78..66af4f6e 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 @@ -57,12 +57,12 @@ public class NBTObjectImpl implements NBTObject { } @Override - public Set getKeys() { - return compound.getKeys(); + public NBTCompound asCompound() { + return new NBTCompoundImpl(compound.getCompound(tag)); } @Override - public NBTCompound getCompound(String tag) { - return new NBTCompoundImpl(compound.getCompound(tag)); + public Set getKeys() { + return compound.getKeys(); } } diff --git a/NMS/NMS-v1_8_R1/pom.xml b/NMS/NMS-v1_8_R1/pom.xml index 131eedbc..125eec52 100644 --- a/NMS/NMS-v1_8_R1/pom.xml +++ b/NMS/NMS-v1_8_R1/pom.xml @@ -3,7 +3,7 @@ com.songoda SongodaCore-Modules - 2.4.13 + 2.4.14 ../../ 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 72b7ab67..d8f51038 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 @@ -137,6 +137,11 @@ public class NBTCompoundImpl implements NBTCompound { return getNBTObject(tag).asIntArray(); } + @Override + public NBTCompound getCompound(String tag) { + return getNBTObject(tag).asCompound(); + } + @Override public Set getKeys() { return compound.c(); 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 ed0bde24..17a00912 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 @@ -62,7 +62,7 @@ public class NBTObjectImpl implements NBTObject { } @Override - public NBTCompound getCompound(String tag) { + public NBTCompound asCompound() { return new NBTCompoundImpl(compound.getCompound(tag)); } } diff --git a/NMS/NMS-v1_8_R2/pom.xml b/NMS/NMS-v1_8_R2/pom.xml index 308be609..fdb75c86 100644 --- a/NMS/NMS-v1_8_R2/pom.xml +++ b/NMS/NMS-v1_8_R2/pom.xml @@ -3,7 +3,7 @@ com.songoda SongodaCore-Modules - 2.4.13 + 2.4.14 ../../ 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 092c4518..b9464093 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 @@ -137,6 +137,11 @@ public class NBTCompoundImpl implements NBTCompound { return getNBTObject(tag).asIntArray(); } + @Override + public NBTCompound getCompound(String tag) { + return getNBTObject(tag).asCompound(); + } + @Override public Set getKeys() { return compound.c(); 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 04c00aa0..05154e13 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 @@ -62,7 +62,7 @@ public class NBTObjectImpl implements NBTObject { } @Override - public NBTCompound getCompound(String tag) { + public NBTCompound asCompound() { return new NBTCompoundImpl(compound.getCompound(tag)); } } diff --git a/NMS/NMS-v1_8_R3/pom.xml b/NMS/NMS-v1_8_R3/pom.xml index ecc53975..18866a72 100644 --- a/NMS/NMS-v1_8_R3/pom.xml +++ b/NMS/NMS-v1_8_R3/pom.xml @@ -3,7 +3,7 @@ com.songoda SongodaCore-Modules - 2.4.13 + 2.4.14 ../../ 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 e48669cf..b8525857 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 @@ -137,6 +137,11 @@ public class NBTCompoundImpl implements NBTCompound { return getNBTObject(tag).asIntArray(); } + @Override + public NBTCompound getCompound(String tag) { + return getNBTObject(tag).asCompound(); + } + @Override public Set getKeys() { return compound.c(); 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 329471b1..cc109ceb 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 @@ -62,7 +62,7 @@ public class NBTObjectImpl implements NBTObject { } @Override - public NBTCompound getCompound(String tag) { + public NBTCompound asCompound() { return new NBTCompoundImpl(compound.getCompound(tag)); } } diff --git a/NMS/NMS-v1_9_R1/pom.xml b/NMS/NMS-v1_9_R1/pom.xml index 547d4922..2df1fcab 100644 --- a/NMS/NMS-v1_9_R1/pom.xml +++ b/NMS/NMS-v1_9_R1/pom.xml @@ -3,7 +3,7 @@ com.songoda SongodaCore-Modules - 2.4.13 + 2.4.14 ../../ 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 3c54dd58..a725d3ab 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 @@ -136,6 +136,11 @@ public class NBTCompoundImpl implements NBTCompound { return getNBTObject(tag).asIntArray(); } + @Override + public NBTCompound getCompound(String tag) { + return getNBTObject(tag).asCompound(); + } + @Override public Set getKeys() { return compound.c(); 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 158eb4c1..e77cf650 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 @@ -62,7 +62,7 @@ public class NBTObjectImpl implements NBTObject { } @Override - public NBTCompound getCompound(String tag) { + public NBTCompound asCompound() { return new NBTCompoundImpl(compound.getCompound(tag)); } } diff --git a/NMS/NMS-v1_9_R2/pom.xml b/NMS/NMS-v1_9_R2/pom.xml index e3871647..9e7f374f 100644 --- a/NMS/NMS-v1_9_R2/pom.xml +++ b/NMS/NMS-v1_9_R2/pom.xml @@ -3,7 +3,7 @@ com.songoda SongodaCore-Modules - 2.4.13 + 2.4.14 ../../ 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 1a55e7ae..661ab9a2 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 @@ -136,6 +136,11 @@ public class NBTCompoundImpl implements NBTCompound { return getNBTObject(tag).asIntArray(); } + @Override + public NBTCompound getCompound(String tag) { + return getNBTObject(tag).asCompound(); + } + @Override public Set getKeys() { return compound.c(); 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 eedd64c4..71c79faf 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 @@ -62,7 +62,7 @@ public class NBTObjectImpl implements NBTObject { } @Override - public NBTCompound getCompound(String tag) { + public NBTCompound asCompound() { return new NBTCompoundImpl(compound.getCompound(tag)); } } diff --git a/pom.xml b/pom.xml index 434c0dad..af7cd49b 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ com.songoda SongodaCore-Modules - 2.4.13 + 2.4.14 4.0.0 pom