2021-05-17 03:02:24 +08:00
|
|
|
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> {
|
2022-07-08 17:14:18 +08:00
|
|
|
@Override
|
|
|
|
|
default boolean check(T t, World world, int x, int y, int z) {
|
|
|
|
|
return true;
|
|
|
|
|
}
|
2021-05-17 03:02:24 +08:00
|
|
|
|
2022-07-08 17:14:18 +08:00
|
|
|
@Override
|
|
|
|
|
default boolean spawnHint(T t, World world, int x, int y, int z, ItemStack trigger) {
|
|
|
|
|
return true;
|
|
|
|
|
}
|
2021-05-17 03:02:24 +08:00
|
|
|
|
2022-07-08 17:14:18 +08:00
|
|
|
@Override
|
|
|
|
|
default boolean placeBlock(T t, World world, int x, int y, int z, ItemStack trigger) {
|
|
|
|
|
return true;
|
|
|
|
|
}
|
2021-05-17 03:02:24 +08:00
|
|
|
|
2022-07-08 17:14:18 +08:00
|
|
|
default boolean isNavigating() {
|
|
|
|
|
return true;
|
|
|
|
|
}
|
2021-05-17 03:02:24 +08:00
|
|
|
}
|