public enum FrameManager extends java.lang.Enum<FrameManager>
BoardFrame
and MapDisplay
objectsEnum Constant and Description |
---|
INSTANCE |
Modifier and Type | Method and Description |
---|---|
java.util.Collection<BoardFrame> |
getBoardFrames() |
MapDisplay |
getDisplay(java.lang.String id) |
java.util.Collection<MapDisplay> |
getDisplays() |
BoardFrame |
getFrame(java.lang.String id) |
BoardFrame |
getFrameAt(org.bukkit.Location location)
Fetch a given BoardFrame at a given coordinate
|
void |
registerBoard(java.lang.String id,
BoardFrame frame)
Register a new board with a given id, and remove previous ones if they exist
|
void |
registerDisplay(MapDisplay display) |
MapDisplay |
removeDisplay(java.lang.String id) |
BoardFrame |
removeFrame(java.lang.String id) |
static FrameManager |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static FrameManager[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FrameManager INSTANCE
public static FrameManager[] values()
for (FrameManager c : FrameManager.values()) System.out.println(c);
public static FrameManager valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic void registerBoard(java.lang.String id, BoardFrame frame)
id
- The string id of the board providedframe
- The new BoardFrame to registerpublic BoardFrame getFrame(java.lang.String id)
public BoardFrame removeFrame(java.lang.String id)
public java.util.Collection<BoardFrame> getBoardFrames()
public void registerDisplay(MapDisplay display)
public MapDisplay getDisplay(java.lang.String id)
public MapDisplay removeDisplay(java.lang.String id)
public java.util.Collection<MapDisplay> getDisplays()
public BoardFrame getFrameAt(org.bukkit.Location location)
location
- The location of a possible board