mirror of
https://github.com/GTNewHorizons/StructureLib.git
synced 2026-11-12 08:17:29 +00:00
28 lines
615 B
Java
28 lines
615 B
Java
package com.gtnewhorizon.structurelib.structure;
|
|||
|
|
|
||
|
|
import net.minecraft.item.ItemStack;
|
||
|
|
import net.minecraft.world.World;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Use StructureUtility to instantiate
|
||
|
|
*/
|
||
|
|
interface IStructureNavigate<T> extends IStructureElement<T> {
|
||
|
|
@Override
|
||
|
|
default boolean check(T t, World world, int x, int y, int z) {
|
||
|
|
return true;
|
||
|
|
}
|
||
|
|
|
||
|
|
@Override
|
||
|
|
default boolean spawnHint(T t, World world, int x, int y, int z, ItemStack trigger) {
|
||
|
|
return true;
|
||
|
|
}
|
||
|
|
|
||
|
|
@Override
|
||
|
|
default boolean placeBlock(T t, World world, int x, int y, int z, ItemStack trigger) {
|
||
|
|
return true;
|
||
|
|
}
|
||
|
|
|
||
|
|
default boolean isNavigating() {
|
||
|
|
return true;
|
||
|
|
}
|
||
|
|
}
|