This commit is contained in:
Brianna 2020-09-29 19:15:03 -05:00
parent 7306fd5c78
commit 78ac5afc80
30 changed files with 90 additions and 18 deletions

View File

@ -45,6 +45,8 @@ public interface NBTCompound {
int[] getIntArray(String tag);
NBTCompound getCompound(String tag);
Set<String> getKeys();
Set<String> getKeys(String tag);

View File

@ -22,5 +22,5 @@ public interface NBTObject {
Set<String> getKeys();
NBTCompound getCompound(String tag);
NBTCompound asCompound();
}

View File

@ -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<String> getKeys() {
return compound.c();

View File

@ -62,7 +62,7 @@ public class NBTObjectImpl implements NBTObject {
}
@Override
public NBTCompound getCompound(String tag) {
public NBTCompound asCompound() {
return new NBTCompoundImpl(compound.getCompound(tag));
}
}

View File

@ -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<String> getKeys() {
return compound.c();

View File

@ -62,7 +62,7 @@ public class NBTObjectImpl implements NBTObject {
}
@Override
public NBTCompound getCompound(String tag) {
public NBTCompound asCompound() {
return new NBTCompoundImpl(compound.getCompound(tag));
}
}

View File

@ -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<String> getKeys() {
return compound.c();

View File

@ -62,7 +62,7 @@ public class NBTObjectImpl implements NBTObject {
}
@Override
public NBTCompound getCompound(String tag) {
public NBTCompound asCompound() {
return new NBTCompoundImpl(compound.getCompound(tag));
}
}

View File

@ -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<String> getKeys() {
return compound.getKeys();

View File

@ -62,7 +62,7 @@ public class NBTObjectImpl implements NBTObject {
}
@Override
public NBTCompound getCompound(String tag) {
public NBTCompound asCompound() {
return new NBTCompoundImpl(compound.getCompound(tag));
}
}

View File

@ -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<String> getKeys() {
return compound.getKeys();

View File

@ -62,7 +62,7 @@ public class NBTObjectImpl implements NBTObject {
}
@Override
public NBTCompound getCompound(String tag) {
public NBTCompound asCompound() {
return new NBTCompoundImpl(compound.getCompound(tag));
}
}

View File

@ -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<String> getKeys() {
return compound.getKeys();

View File

@ -62,7 +62,7 @@ public class NBTObjectImpl implements NBTObject {
}
@Override
public NBTCompound getCompound(String tag) {
public NBTCompound asCompound() {
return new NBTCompoundImpl(compound.getCompound(tag));
}
}

View File

@ -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<String> getKeys() {
return compound.getKeys();

View File

@ -62,7 +62,7 @@ public class NBTObjectImpl implements NBTObject {
}
@Override
public NBTCompound getCompound(String tag) {
public NBTCompound asCompound() {
return new NBTCompoundImpl(compound.getCompound(tag));
}
}

View File

@ -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<String> getKeys() {
return compound.getKeys();

View File

@ -62,7 +62,7 @@ public class NBTObjectImpl implements NBTObject {
}
@Override
public NBTCompound getCompound(String tag) {
public NBTCompound asCompound() {
return new NBTCompoundImpl(compound.getCompound(tag));
}
}

View File

@ -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<String> getKeys() {
return compound.getKeys();

View File

@ -57,12 +57,12 @@ public class NBTObjectImpl implements NBTObject {
}
@Override
public Set<String> 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<String> getKeys() {
return compound.getKeys();
}
}

View File

@ -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<String> getKeys() {
return compound.c();

View File

@ -62,7 +62,7 @@ public class NBTObjectImpl implements NBTObject {
}
@Override
public NBTCompound getCompound(String tag) {
public NBTCompound asCompound() {
return new NBTCompoundImpl(compound.getCompound(tag));
}
}

View File

@ -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<String> getKeys() {
return compound.c();

View File

@ -62,7 +62,7 @@ public class NBTObjectImpl implements NBTObject {
}
@Override
public NBTCompound getCompound(String tag) {
public NBTCompound asCompound() {
return new NBTCompoundImpl(compound.getCompound(tag));
}
}

View File

@ -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<String> getKeys() {
return compound.c();

View File

@ -62,7 +62,7 @@ public class NBTObjectImpl implements NBTObject {
}
@Override
public NBTCompound getCompound(String tag) {
public NBTCompound asCompound() {
return new NBTCompoundImpl(compound.getCompound(tag));
}
}

View File

@ -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<String> getKeys() {
return compound.c();

View File

@ -62,7 +62,7 @@ public class NBTObjectImpl implements NBTObject {
}
@Override
public NBTCompound getCompound(String tag) {
public NBTCompound asCompound() {
return new NBTCompoundImpl(compound.getCompound(tag));
}
}

View File

@ -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<String> getKeys() {
return compound.c();

View File

@ -62,7 +62,7 @@ public class NBTObjectImpl implements NBTObject {
}
@Override
public NBTCompound getCompound(String tag) {
public NBTCompound asCompound() {
return new NBTCompoundImpl(compound.getCompound(tag));
}
}