Working on Structure

This commit is contained in:
abhiram 2021-03-26 23:11:55 +05:30
parent c4b94c3754
commit 3b8b9f715c
4 changed files with 23 additions and 9 deletions

View File

@ -31,7 +31,8 @@ dependencies {
"net.md-5:bungeecord-api:1.16-R0.4-SNAPSHOT", "net.md-5:bungeecord-api:1.16-R0.4-SNAPSHOT",
"io.github.waterfallmc:waterfall-api:1.16-R0.4-SNAPSHOT", "io.github.waterfallmc:waterfall-api:1.16-R0.4-SNAPSHOT",
"me.clip:placeholderapi:2.10.9", "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 -> ].each {s ->
compileOnly s compileOnly s
} }

View File

@ -1,5 +1,5 @@
package io.github.simplexdev.simplexcore.structures; package io.github.simplexdev.simplexcore.structures;
public class Structure { public class Structure {
// TODO: Write this file to parse schematics. // TODO: Write this
} }

View File

@ -1,15 +1,19 @@
package io.github.simplexdev.simplexcore.structures.block; 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 { public abstract class NBTBlock {
private final NBTTagCompound nbttag; private Object nbttag;
public NBTBlock(NBTTagCompound nbttag){ public Object getNbttag(){
this.nbttag = nbttag;
}
public NBTTagCompound getNbttag(){
return nbttag; return nbttag;
} }
public abstract Vector getOffset() throws InvalidSchematic;
public abstract boolean isEmpty();
} }

View File

@ -0,0 +1,9 @@
package io.github.simplexdev.simplexcore.structures.exception;
public class InvalidSchematic extends Exception{
public InvalidSchematic(String msg)
{
super(msg);
}
}