mirror of
https://github.com/SimplexDevelopment/SimplexCore.git
synced 2024-12-22 00:37:36 +00:00
Working on Structure
This commit is contained in:
parent
c4b94c3754
commit
3b8b9f715c
@ -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
|
||||||
}
|
}
|
||||||
|
@ -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
|
||||||
}
|
}
|
||||||
|
@ -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();
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -0,0 +1,9 @@
|
|||||||
|
package io.github.simplexdev.simplexcore.structures.exception;
|
||||||
|
|
||||||
|
public class InvalidSchematic extends Exception{
|
||||||
|
|
||||||
|
public InvalidSchematic(String msg)
|
||||||
|
{
|
||||||
|
super(msg);
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user