Class PortalHelper

java.lang.Object
org.sgrewritten.stargate.util.portal.PortalHelper

public final class PortalHelper extends Object
A helper class for dealing with portals
  • Method Details

    • flagsToString

      public static String flagsToString(Set<PortalFlag> flags)
      Gets the string representation of a set of portal flags
      Parameters:
      flags -

      The flags to convert to a string

      Returns:

      A string representing the portal flags

    • portalValidityCheck

      public static boolean portalValidityCheck(RealPortal portal, NetworkManager networkManager)
      Parameters:
      portal -

      The portal to check for

      networkManager -

      A stargate network manager

      Returns:

      True if the portal is valid