Add more line of sight methods

This commit is contained in:
TwoLeggedCat
2021-05-29 14:33:18 -05:00
parent efcb04d753
commit 0f0e14fad5
2 changed files with 21 additions and 0 deletions

View File

@@ -461,5 +461,13 @@ public interface RegionAccessor extends Keyed { // Paper
@NotNull
@Override
NamespacedKey getKey();
/**
* Tell whether a line of sight exists between the given locations
* @param from Location to start at
* @param to target Location
* @return whether a line of sight exists between {@code from} and {@code to}
*/
public boolean lineOfSightExists(@NotNull Location from, @NotNull Location to);
// Paper end
}