public class BoardFrame
extends java.lang.Object
Constructor and Description |
---|
BoardFrame(org.bukkit.entity.ItemFrame frame,
int id)
Given an item frame and a map id, construct a new board
|
Modifier and Type | Method and Description |
---|---|
org.bukkit.block.BlockFace |
getFace()
Gets the inverse face of the board
|
java.util.List<java.util.UUID> |
getFrames()
Gets a list of all the item frames in this board
|
int |
getHeight()
Gets the height in map lengths of this board
|
int |
getId()
Gets the map id of the top left frame
|
org.bukkit.entity.ItemFrame |
getItemFrameAt(org.bukkit.Location location)
Get an item frame at a given location
|
org.bukkit.Location |
getTopLeftCorner()
Gets the location of the top left item frame
|
int |
getWidth()
Gets the width in map lengths of this board
|
boolean |
isPartOfBoard(org.bukkit.Location location)
Tests whether a location is within the rectangle of the board
|
void |
terminate()
Remove all the item frames of this board
|
public BoardFrame(org.bukkit.entity.ItemFrame frame, int id)
frame
- Any frame on a wall with the same material behind itid
- The id of the top left mappublic org.bukkit.block.BlockFace getFace()
public org.bukkit.Location getTopLeftCorner()
public int getId()
public int getWidth()
public int getHeight()
public java.util.List<java.util.UUID> getFrames()
public org.bukkit.entity.ItemFrame getItemFrameAt(org.bukkit.Location location)
location
- The location should be part of the boardpublic boolean isPartOfBoard(org.bukkit.Location location)
location
- Location to testpublic void terminate()