The rest of the double NBT.

This commit is contained in:
Brianna 2020-04-22 13:55:56 -04:00
parent db9ab57437
commit 204aa22acc
13 changed files with 50 additions and 2 deletions

View File

@ -1,7 +1,5 @@
package com.songoda.core.nms.nbt;
import java.util.List;
public interface NBTObject {
String asString();
@ -10,6 +8,8 @@ public interface NBTObject {
int asInt();
double asDouble();
long asLong();
short asShort();

View File

@ -25,6 +25,10 @@ public class NBTObjectImpl implements NBTObject {
return compound.getInt(tag);
}
public double asDouble() {
return compound.getDouble(tag);
}
public long asLong() {
return compound.getLong(tag);
}

View File

@ -25,6 +25,10 @@ public class NBTObjectImpl implements NBTObject {
return compound.getInt(tag);
}
public double asDouble() {
return compound.getDouble(tag);
}
public long asLong() {
return compound.getLong(tag);
}

View File

@ -25,6 +25,10 @@ public class NBTObjectImpl implements NBTObject {
return compound.getInt(tag);
}
public double asDouble() {
return compound.getDouble(tag);
}
public long asLong() {
return compound.getLong(tag);
}

View File

@ -25,6 +25,10 @@ public class NBTObjectImpl implements NBTObject {
return compound.getInt(tag);
}
public double asDouble() {
return compound.getDouble(tag);
}
public long asLong() {
return compound.getLong(tag);
}

View File

@ -25,6 +25,10 @@ public class NBTObjectImpl implements NBTObject {
return compound.getInt(tag);
}
public double asDouble() {
return compound.getDouble(tag);
}
public long asLong() {
return compound.getLong(tag);
}

View File

@ -25,6 +25,10 @@ public class NBTObjectImpl implements NBTObject {
return compound.getInt(tag);
}
public double asDouble() {
return compound.getDouble(tag);
}
public long asLong() {
return compound.getLong(tag);
}

View File

@ -25,6 +25,10 @@ public class NBTObjectImpl implements NBTObject {
return compound.getInt(tag);
}
public double asDouble() {
return compound.getDouble(tag);
}
public long asLong() {
return compound.getLong(tag);
}

View File

@ -25,6 +25,10 @@ public class NBTObjectImpl implements NBTObject {
return compound.getInt(tag);
}
public double asDouble() {
return compound.getDouble(tag);
}
public long asLong() {
return compound.getLong(tag);
}

View File

@ -25,6 +25,10 @@ public class NBTObjectImpl implements NBTObject {
return compound.getInt(tag);
}
public double asDouble() {
return compound.getDouble(tag);
}
public long asLong() {
return compound.getLong(tag);
}

View File

@ -25,6 +25,10 @@ public class NBTObjectImpl implements NBTObject {
return compound.getInt(tag);
}
public double asDouble() {
return compound.getDouble(tag);
}
public long asLong() {
return compound.getLong(tag);
}

View File

@ -25,6 +25,10 @@ public class NBTObjectImpl implements NBTObject {
return compound.getInt(tag);
}
public double asDouble() {
return compound.getDouble(tag);
}
public long asLong() {
return compound.getLong(tag);
}

View File

@ -25,6 +25,10 @@ public class NBTObjectImpl implements NBTObject {
return compound.getInt(tag);
}
public double asDouble() {
return compound.getDouble(tag);
}
public long asLong() {
return compound.getLong(tag);
}