Class SpawnDetectionHelper

java.lang.Object
org.sgrewritten.stargate.util.SpawnDetectionHelper

public final class SpawnDetectionHelper extends Object
A helper class for deciding if a given gate is interfering with the spawn protection area
Author:
Kristian Knarvik (EpicKnarvik97)
  • Method Details

    • isInterferingWithSpawnProtection

      public static boolean isInterferingWithSpawnProtection(GateAPI gate)
      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