more pathing
This commit is contained in:
parent
8c8ce9cd5e
commit
b29b66a19c
@ -34,5 +34,4 @@ public class PathExecution extends Behavior implements Helper {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -64,12 +64,17 @@ public interface IPath {
|
||||
/**
|
||||
* Where does this path start
|
||||
*/
|
||||
BlockPos getSrc();
|
||||
default BlockPos getSrc() {
|
||||
return positions().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Where does this path end
|
||||
*/
|
||||
BlockPos getDest();
|
||||
default BlockPos getDest() {
|
||||
List<BlockPos> pos = positions();
|
||||
return pos.get(pos.size() - 1);
|
||||
}
|
||||
|
||||
/**
|
||||
* For rendering purposes, what blocks should be highlighted in red
|
||||
|
Loading…
Reference in New Issue
Block a user