diff --git a/build.gradle b/build.gradle index 118cb0a..feb9f35 100644 --- a/build.gradle +++ b/build.gradle @@ -31,7 +31,8 @@ dependencies { "net.md-5:bungeecord-api:1.16-R0.4-SNAPSHOT", "io.github.waterfallmc:waterfall-api:1.16-R0.4-SNAPSHOT", "me.clip:placeholderapi:2.10.9", - files("libs/spigot-1.16.5.jar") + files("libs/spigot-1.16.5.jar"), + files("libs/spigot-1.16.4.jar") ].each {s -> compileOnly s } diff --git a/src/main/java/io/github/simplexdev/simplexcore/structures/Structure.java b/src/main/java/io/github/simplexdev/simplexcore/structures/Structure.java index 2f95837..07c07df 100644 --- a/src/main/java/io/github/simplexdev/simplexcore/structures/Structure.java +++ b/src/main/java/io/github/simplexdev/simplexcore/structures/Structure.java @@ -1,5 +1,5 @@ package io.github.simplexdev.simplexcore.structures; public class Structure { - // TODO: Write this file to parse schematics. + // TODO: Write this } diff --git a/src/main/java/io/github/simplexdev/simplexcore/structures/block/NBTBlock.java b/src/main/java/io/github/simplexdev/simplexcore/structures/block/NBTBlock.java index 3a9f838..3e3e975 100644 --- a/src/main/java/io/github/simplexdev/simplexcore/structures/block/NBTBlock.java +++ b/src/main/java/io/github/simplexdev/simplexcore/structures/block/NBTBlock.java @@ -1,15 +1,19 @@ package io.github.simplexdev.simplexcore.structures.block; -import net.minecraft.server.v1_16_R3.NBTTagCompound; +import io.github.simplexdev.simplexcore.structures.exception.InvalidSchematic; + +import java.util.Vector; public abstract class NBTBlock { - private final NBTTagCompound nbttag; + private Object nbttag; - public NBTBlock(NBTTagCompound nbttag){ - this.nbttag = nbttag; - } - - public NBTTagCompound getNbttag(){ + public Object getNbttag(){ return nbttag; } + + public abstract Vector getOffset() throws InvalidSchematic; + + public abstract boolean isEmpty(); + + } diff --git a/src/main/java/io/github/simplexdev/simplexcore/structures/exception/InvalidSchematic.java b/src/main/java/io/github/simplexdev/simplexcore/structures/exception/InvalidSchematic.java new file mode 100644 index 0000000..8e6c6bd --- /dev/null +++ b/src/main/java/io/github/simplexdev/simplexcore/structures/exception/InvalidSchematic.java @@ -0,0 +1,9 @@ +package io.github.simplexdev.simplexcore.structures.exception; + +public class InvalidSchematic extends Exception{ + + public InvalidSchematic(String msg) + { + super(msg); + } +}