Package org.kikikan.deadbymoonlight.game
Class ExitLever
- java.lang.Object
-
- org.kikikan.deadbymoonlight.game.WorldObject
-
- org.kikikan.deadbymoonlight.game.ExitLever
-
public final class ExitLever extends WorldObject
Represents an Exit Gate.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.bukkit.Location
getBottomLeft()
Gets a clone of the bottom left corner of the Exit Gate.boolean
getIsOpen()
Checks if this gate is open.static int
getMaxExitProgress()
Gets the maximum amount of progress needed to open Exit Gates.org.bukkit.Location
getTopRight()
Gets a clone of the top right corner of the Exit Gate.void
open()
Opens the Exit Gate if it is closed.-
Methods inherited from class org.kikikan.deadbymoonlight.game.WorldObject
equals, getGame, getLocation, hashCode
-
-
-
-
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.
-
-