com.matejdro.bukkit.jail
public class JailCell extends java.lang.Object
Constructor and Description |
---|
JailCell(java.lang.String JailName,
java.lang.String Player) |
Modifier and Type | Method and Description |
---|---|
org.bukkit.block.Chest |
getChest() |
JailZone |
getJail() |
java.lang.String |
getPlayerName() |
org.bukkit.block.Chest |
getSecondChest() |
org.bukkit.block.Sign |
getSign() |
org.bukkit.Location |
getTeleportLocation() |
void |
setChest(org.bukkit.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 |
setPlayerName(java.lang.String input)
Set name of the player that is being jailed in this cell.
|
void |
setSecondChest(org.bukkit.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 |
setSign(org.bukkit.Location input)
Set sign that belongs to this chest
|
void |
setSign(java.lang.String input)
Set sign that belongs to this chest
|
void |
setTeleportLocation(org.bukkit.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
|
public JailCell(java.lang.String JailName, java.lang.String Player)
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 org.bukkit.block.Chest getChest()
public JailZone getJail()
public java.lang.String getPlayerName()
public org.bukkit.block.Chest getSecondChest()
public org.bukkit.block.Sign getSign()
public org.bukkit.Location getTeleportLocation()
public void setChest(org.bukkit.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 setPlayerName(java.lang.String input)
input
- name of the player. Use blank string if you want to clear that field.public void setSecondChest(org.bukkit.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 setSign(org.bukkit.Location input)
input
- location of the signpublic void setSign(java.lang.String input)
input
- location of the sign in string. Format: "x,y,z"public void setTeleportLocation(org.bukkit.Location input)
input
- desired location.public void setTeleportLocation(java.lang.String input)
input
- desired location in string. Format: "x,y,z".