Package org.sgrewritten.stargate.util
Class SpawnDetectionHelper
java.lang.Object
org.sgrewritten.stargate.util.SpawnDetectionHelper
A helper class for deciding if a given gate is interfering with the spawn protection area
- Author:
- Kristian Knarvik (EpicKnarvik97)
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
Checks whether the given gate has any block inside the spawn protection area
-
Method Details
-
isInterferingWithSpawnProtection
Checks whether the given gate has any block inside the spawn protection area- Parameters:
gate
-The gate to check for interference
- Returns:
True if the gate has at least one block inside the spawn protection area
-