Class ExitLever


  • public final class ExitLever
    extends WorldObject
    Represents an Exit Gate.
    • Method Detail

      • open

        public void open()
        Opens the Exit Gate if it is closed.
      • getIsOpen

        public boolean getIsOpen()
        Checks if this gate is open.
        Returns:
        True if this Exit Gate is open.
      • getBottomLeft

        public org.bukkit.Location getBottomLeft()
        Gets a clone of the bottom left corner of the Exit Gate.
        Returns:
        The clone of the bottom left corner of the Exit Gate.
      • getTopRight

        public org.bukkit.Location getTopRight()
        Gets a clone of the top right corner of the Exit Gate.
        Returns:
        The clone of the top right corner of the Exit Gate.
      • getMaxExitProgress

        public static int getMaxExitProgress()
        Gets the maximum amount of progress needed to open Exit Gates.
        Returns:
        The amount of progress needed in integers.