mirror of
https://github.com/GTNewHorizons/StructureLib.git
synced 2026-11-16 18:44:43 +00:00
Add most of code. Still missing some hint related stuff.
Signed-off-by: Glease <[email protected]>
This commit is contained in:
1 parent
b5166dbd1c
commit
dc12c4a1df
40 files changed
+4085
No files matched your search
@@ -0,0 +1,43 @@
|
||||
package com.gtnewhorizon.structurelib.structure;
|
||||
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
/**
|
||||
* Use StructureUtility to instantiate
|
||||
*/
|
||||
public interface IStructureElement<T> {
|
||||
boolean check(T t, World world, int x, int y, int z);
|
||||
|
||||
boolean spawnHint(T t, World world, int x, int y, int z, ItemStack trigger);
|
||||
|
||||
boolean placeBlock(T t, World world, int x, int y, int z, ItemStack trigger);
|
||||
|
||||
default int getStepA() {
|
||||
return 1;
|
||||
}
|
||||
|
||||
default int getStepB() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
default int getStepC() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
default boolean resetA() {
|
||||
return false;
|
||||
}
|
||||
|
||||
default boolean resetB() {
|
||||
return false;
|
||||
}
|
||||
|
||||
default boolean resetC() {
|
||||
return false;
|
||||
}
|
||||
|
||||
default boolean isNavigating() {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user