All Implemented Interfaces:
UseListener, Killer, Cloneable, Iterable<String>, Serializable

public class MylingWellPortal extends AccessCheckingPortal
  • Constructor Details

    • MylingWellPortal

      public MylingWellPortal()
  • Method Details

    • isAllowed

      protected boolean isAllowed(RPEntity user)
      Description copied from class: AccessCheckingPortal
      Determine if this portal can be used.
      Specified by:
      isAllowed in class AccessCheckingPortal
      Parameters:
      user - The user to be checked.
      Returns:
      true if the user can use the portal.
    • onUsed

      public boolean onUsed(RPEntity user)
      Description copied from class: AccessCheckingPortal
      Use the portal, if allowed.
      Specified by:
      onUsed in interface UseListener
      Overrides:
      onUsed in class AccessCheckingPortal
      Parameters:
      user - that wants to pass.
      Returns:
      true if passed , false otherwise.
    • usePortal

      protected boolean usePortal(Player player)
      Description copied from class: Portal
      Use the portal.
      Overrides:
      usePortal in class Portal
      Parameters:
      player - the Player who wants to use this portal
      Returns:
      true if the portal worked, false otherwise.