public class JailCell
extends java.lang.Object
Constructor and Description |
---|
JailCell(java.lang.String JailName,
java.lang.String Player,
java.lang.String Name) |
Modifier and Type | Method and Description |
---|---|
void |
addSign(Location input)
Add sign to this cell
|
void |
addSign(java.lang.String input)
Add sign to this cell
|
void |
delete()
Delete this cell from database
|
Chest |
getChest() |
JailZone |
getJail() |
java.lang.String |
getName() |
java.lang.String |
getPlayerName() |
Chest |
getSecondChest() |
java.util.ArrayList<Sign> |
getSigns() |
Location |
getTeleportLocation() |
void |
removeSign(Location input)
Remove sign from this cell
|
void |
setChest(Location input)
Set chest that belongs to this cell
|
void |
setChest(java.lang.String input)
Set chest that belongs to this cell
|
void |
setJail(JailZone input)
Set to which jail zone is this cell assigned.
|
void |
setName(java.lang.String input)
Set name of the cell
|
void |
setPlayerName(java.lang.String input)
Set name of the player that is being jailed in this cell.
|
void |
setSecondChest(Location input)
set second chest (in case of double chest) that belongs to this cell.
|
void |
setSecondChest(java.lang.String input)
second chest (in case of double chest) that belongs to this cell.
|
void |
setTeleportLocation(Location input)
Sets Location, where player gets teleported after being jailed in this cell
|
void |
setTeleportLocation(java.lang.String input)
Location, where player gets teleported after being jailed in this cell
|
void |
update()
Update data of this cell into database.
|
public JailCell(java.lang.String JailName, java.lang.String Player, java.lang.String Name)
Name
- Name of the cell. Can be null if you don't want to specify one.JailName
- Name of the jail that contains that cellPlayer
- Name of the player that is jailed inside that cell. Make it empty string, if there is no such player.public void addSign(Location input)
input
- location of the signpublic void addSign(java.lang.String input)
input
- location of the sign in string. Format: "x,y,z"public void delete()
public Chest getChest()
public JailZone getJail()
public java.lang.String getName()
public java.lang.String getPlayerName()
public Chest getSecondChest()
public java.util.ArrayList<Sign> getSigns()
public Location getTeleportLocation()
public void removeSign(Location input)
input
- location of the signpublic void setChest(Location input)
input
- location of the chest.public void setChest(java.lang.String input)
input
- location of the chest in string. Format: "x,y,z".public void setJail(JailZone input)
input
- desired jail zonepublic void setName(java.lang.String input)
input
- Name of the cell. Can be nullpublic void setPlayerName(java.lang.String input)
input
- name of the player. Use blank string if you want to clear that field.public void setSecondChest(Location input)
input
- location of the second chestpublic void setSecondChest(java.lang.String input)
input
- location of the second chest in string. Format: "x,y,z"public void setTeleportLocation(Location input)
input
- desired location.public void setTeleportLocation(java.lang.String input)
input
- desired location in string. Format: "x,y,z".public void update()