mirror of
https://github.com/songoda/SongodaCore.git
synced 2025-04-17 17:36:10 +02:00
NBT fix.
This commit is contained in:
parent
7306fd5c78
commit
78ac5afc80
@ -45,6 +45,8 @@ public interface NBTCompound {
|
||||
|
||||
int[] getIntArray(String tag);
|
||||
|
||||
NBTCompound getCompound(String tag);
|
||||
|
||||
Set<String> getKeys();
|
||||
|
||||
Set<String> getKeys(String tag);
|
||||
|
@ -22,5 +22,5 @@ public interface NBTObject {
|
||||
|
||||
Set<String> getKeys();
|
||||
|
||||
NBTCompound getCompound(String tag);
|
||||
NBTCompound asCompound();
|
||||
}
|
||||
|
@ -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();
|
||||
|
@ -62,7 +62,7 @@ public class NBTObjectImpl implements NBTObject {
|
||||
}
|
||||
|
||||
@Override
|
||||
public NBTCompound getCompound(String tag) {
|
||||
public NBTCompound asCompound() {
|
||||
return new NBTCompoundImpl(compound.getCompound(tag));
|
||||
}
|
||||
}
|
||||
|
@ -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();
|
||||
|
@ -62,7 +62,7 @@ public class NBTObjectImpl implements NBTObject {
|
||||
}
|
||||
|
||||
@Override
|
||||
public NBTCompound getCompound(String tag) {
|
||||
public NBTCompound asCompound() {
|
||||
return new NBTCompoundImpl(compound.getCompound(tag));
|
||||
}
|
||||
}
|
||||
|
@ -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();
|
||||
|
@ -62,7 +62,7 @@ public class NBTObjectImpl implements NBTObject {
|
||||
}
|
||||
|
||||
@Override
|
||||
public NBTCompound getCompound(String tag) {
|
||||
public NBTCompound asCompound() {
|
||||
return new NBTCompoundImpl(compound.getCompound(tag));
|
||||
}
|
||||
}
|
||||
|
@ -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();
|
||||
|
@ -62,7 +62,7 @@ public class NBTObjectImpl implements NBTObject {
|
||||
}
|
||||
|
||||
@Override
|
||||
public NBTCompound getCompound(String tag) {
|
||||
public NBTCompound asCompound() {
|
||||
return new NBTCompoundImpl(compound.getCompound(tag));
|
||||
}
|
||||
}
|
||||
|
@ -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();
|
||||
|
@ -62,7 +62,7 @@ public class NBTObjectImpl implements NBTObject {
|
||||
}
|
||||
|
||||
@Override
|
||||
public NBTCompound getCompound(String tag) {
|
||||
public NBTCompound asCompound() {
|
||||
return new NBTCompoundImpl(compound.getCompound(tag));
|
||||
}
|
||||
}
|
||||
|
@ -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();
|
||||
|
@ -62,7 +62,7 @@ public class NBTObjectImpl implements NBTObject {
|
||||
}
|
||||
|
||||
@Override
|
||||
public NBTCompound getCompound(String tag) {
|
||||
public NBTCompound asCompound() {
|
||||
return new NBTCompoundImpl(compound.getCompound(tag));
|
||||
}
|
||||
}
|
||||
|
@ -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();
|
||||
|
@ -62,7 +62,7 @@ public class NBTObjectImpl implements NBTObject {
|
||||
}
|
||||
|
||||
@Override
|
||||
public NBTCompound getCompound(String tag) {
|
||||
public NBTCompound asCompound() {
|
||||
return new NBTCompoundImpl(compound.getCompound(tag));
|
||||
}
|
||||
}
|
||||
|
@ -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();
|
||||
|
@ -62,7 +62,7 @@ public class NBTObjectImpl implements NBTObject {
|
||||
}
|
||||
|
||||
@Override
|
||||
public NBTCompound getCompound(String tag) {
|
||||
public NBTCompound asCompound() {
|
||||
return new NBTCompoundImpl(compound.getCompound(tag));
|
||||
}
|
||||
}
|
||||
|
@ -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();
|
||||
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
@ -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();
|
||||
|
@ -62,7 +62,7 @@ public class NBTObjectImpl implements NBTObject {
|
||||
}
|
||||
|
||||
@Override
|
||||
public NBTCompound getCompound(String tag) {
|
||||
public NBTCompound asCompound() {
|
||||
return new NBTCompoundImpl(compound.getCompound(tag));
|
||||
}
|
||||
}
|
||||
|
@ -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();
|
||||
|
@ -62,7 +62,7 @@ public class NBTObjectImpl implements NBTObject {
|
||||
}
|
||||
|
||||
@Override
|
||||
public NBTCompound getCompound(String tag) {
|
||||
public NBTCompound asCompound() {
|
||||
return new NBTCompoundImpl(compound.getCompound(tag));
|
||||
}
|
||||
}
|
||||
|
@ -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();
|
||||
|
@ -62,7 +62,7 @@ public class NBTObjectImpl implements NBTObject {
|
||||
}
|
||||
|
||||
@Override
|
||||
public NBTCompound getCompound(String tag) {
|
||||
public NBTCompound asCompound() {
|
||||
return new NBTCompoundImpl(compound.getCompound(tag));
|
||||
}
|
||||
}
|
||||
|
@ -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();
|
||||
|
@ -62,7 +62,7 @@ public class NBTObjectImpl implements NBTObject {
|
||||
}
|
||||
|
||||
@Override
|
||||
public NBTCompound getCompound(String tag) {
|
||||
public NBTCompound asCompound() {
|
||||
return new NBTCompoundImpl(compound.getCompound(tag));
|
||||
}
|
||||
}
|
||||
|
@ -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();
|
||||
|
@ -62,7 +62,7 @@ public class NBTObjectImpl implements NBTObject {
|
||||
}
|
||||
|
||||
@Override
|
||||
public NBTCompound getCompound(String tag) {
|
||||
public NBTCompound asCompound() {
|
||||
return new NBTCompoundImpl(compound.getCompound(tag));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user