Get keys by compound.

This commit is contained in:
Brianna 2020-09-29 18:26:20 -05:00
parent 38a1dc0d4d
commit b048fc53da
16 changed files with 73 additions and 1 deletions

View File

@ -54,7 +54,7 @@ public class SongodaCore {
/**
* This has been added as of Rev 6
*/
private final static String coreVersion = "2.4.11";
private final static String coreVersion = "2.4.12";
/**
* This is specific to the website api

View File

@ -47,6 +47,8 @@ public interface NBTCompound {
Set<String> getKeys();
Set<String> getKeys(String tag);
byte[] serialize(String... exclusions);
void deSerialize(byte[] serialized);

View File

@ -141,6 +141,11 @@ public abstract class NBTCompoundImpl implements NBTCompound {
return compound.c();
}
@Override
public Set<String> getKeys(String tag) {
return compound.getCompound(tag).c();
}
@Override
public byte[] serialize(String... exclusions) {
try (ByteArrayOutputStream outputStream = new ByteArrayOutputStream();

View File

@ -141,6 +141,11 @@ public abstract class NBTCompoundImpl implements NBTCompound {
return compound.c();
}
@Override
public Set<String> getKeys(String tag) {
return compound.getCompound(tag).c();
}
@Override
public byte[] serialize(String... exclusions) {
try (ByteArrayOutputStream outputStream = new ByteArrayOutputStream();

View File

@ -141,6 +141,11 @@ public abstract class NBTCompoundImpl implements NBTCompound {
return compound.c();
}
@Override
public Set<String> getKeys(String tag) {
return compound.getCompound(tag).c();
}
@Override
public byte[] serialize(String... exclusions) {
try (ByteArrayOutputStream outputStream = new ByteArrayOutputStream();

View File

@ -141,6 +141,11 @@ public abstract class NBTCompoundImpl implements NBTCompound {
return compound.getKeys();
}
@Override
public Set<String> getKeys(String tag) {
return compound.getCompound(tag).getKeys();
}
@Override
public byte[] serialize(String... exclusions) {
try (ByteArrayOutputStream outputStream = new ByteArrayOutputStream();

View File

@ -141,6 +141,11 @@ public abstract class NBTCompoundImpl implements NBTCompound {
return compound.getKeys();
}
@Override
public Set<String> getKeys(String tag) {
return compound.getCompound(tag).getKeys();
}
@Override
public byte[] serialize(String... exclusions) {
try (ByteArrayOutputStream outputStream = new ByteArrayOutputStream();

View File

@ -141,6 +141,11 @@ public abstract class NBTCompoundImpl implements NBTCompound {
return compound.getKeys();
}
@Override
public Set<String> getKeys(String tag) {
return compound.getCompound(tag).getKeys();
}
@Override
public byte[] serialize(String... exclusions) {
try (ByteArrayOutputStream outputStream = new ByteArrayOutputStream();

View File

@ -141,6 +141,11 @@ public abstract class NBTCompoundImpl implements NBTCompound {
return compound.getKeys();
}
@Override
public Set<String> getKeys(String tag) {
return compound.getCompound(tag).getKeys();
}
@Override
public byte[] serialize(String... exclusions) {
try (ByteArrayOutputStream outputStream = new ByteArrayOutputStream();

View File

@ -141,6 +141,11 @@ public abstract class NBTCompoundImpl implements NBTCompound {
return compound.getKeys();
}
@Override
public Set<String> getKeys(String tag) {
return compound.getCompound(tag).getKeys();
}
@Override
public byte[] serialize(String... exclusions) {
try (ByteArrayOutputStream outputStream = new ByteArrayOutputStream();

View File

@ -141,6 +141,11 @@ public abstract class NBTCompoundImpl implements NBTCompound {
return compound.getKeys();
}
@Override
public Set<String> getKeys(String tag) {
return compound.getCompound(tag).getKeys();
}
@Override
public byte[] serialize(String... exclusions) {
try (ByteArrayOutputStream outputStream = new ByteArrayOutputStream();

View File

@ -142,6 +142,11 @@ public abstract class NBTCompoundImpl implements NBTCompound {
return compound.c();
}
@Override
public Set<String> getKeys(String tag) {
return compound.getCompound(tag).c();
}
@Override
public byte[] serialize(String... exclusions) {
try (ByteArrayOutputStream outputStream = new ByteArrayOutputStream();

View File

@ -142,6 +142,11 @@ public abstract class NBTCompoundImpl implements NBTCompound {
return compound.c();
}
@Override
public Set<String> getKeys(String tag) {
return compound.getCompound(tag).c();
}
@Override
public byte[] serialize(String... exclusions) {
try (ByteArrayOutputStream outputStream = new ByteArrayOutputStream();

View File

@ -142,6 +142,11 @@ public abstract class NBTCompoundImpl implements NBTCompound {
return compound.c();
}
@Override
public Set<String> getKeys(String tag) {
return compound.getCompound(tag).c();
}
@Override
public byte[] serialize(String... exclusions) {
try (ByteArrayOutputStream outputStream = new ByteArrayOutputStream();

View File

@ -141,6 +141,11 @@ public abstract class NBTCompoundImpl implements NBTCompound {
return compound.c();
}
@Override
public Set<String> getKeys(String tag) {
return compound.getCompound(tag).c();
}
@Override
public byte[] serialize(String... exclusions) {
try (ByteArrayOutputStream outputStream = new ByteArrayOutputStream();

View File

@ -141,6 +141,11 @@ public abstract class NBTCompoundImpl implements NBTCompound {
return compound.c();
}
@Override
public Set<String> getKeys(String tag) {
return compound.getCompound(tag).c();
}
@Override
public byte[] serialize(String... exclusions) {
try (ByteArrayOutputStream outputStream = new ByteArrayOutputStream();