com.matejdro.bukkit.jail
public class JailZone extends java.lang.Object
Constructor and Description |
---|
JailZone(java.lang.String pname,
double pX1,
double pY1,
double pZ1,
double pX2,
double pY2,
double pZ2,
double pteleX,
double pteleY,
double pteleZ,
double pfreeX,
double pfreeY,
double pfreeZ,
java.lang.String pteleWorld,
java.lang.String pfreeWorld) |
Modifier and Type | Method and Description |
---|---|
void |
delete()
Delete this jail zone.
|
java.util.HashSet<JailCell> |
getCellList() |
double |
getDistance(org.bukkit.Location loc) |
JailCell |
getEmptyCell() |
org.bukkit.Location |
getFirstCorner() |
java.lang.String |
getName() |
java.util.HashSet<JailPrisoner> |
getPrisoners() |
org.bukkit.Location |
getReleaseTeleportLocation() |
org.bukkit.Location |
getSecondCorner() |
org.bukkit.Location |
getTeleportLocation() |
java.lang.Boolean |
isInside(org.bukkit.Location loc)
Checks if location is inside this jail zone
|
void |
setFirstCorner(org.bukkit.Location input)
Change first corner of cuboid of this jail zone
|
void |
setReleaseTeleportLocation(org.bukkit.Location input)
Change location, where players get teleported after being released in this jail zone
|
void |
setSecondCorner(org.bukkit.Location input)
Change second corner of cuboid of this jail zone
|
void |
setTeleportLocation(org.bukkit.Location input)
Change location, where players get teleported after being jailed in this jail zone
|
void |
update()
Update properties of this jail zone into database.
|
public JailZone(java.lang.String pname, double pX1, double pY1, double pZ1, double pX2, double pY2, double pZ2, double pteleX, double pteleY, double pteleZ, double pfreeX, double pfreeY, double pfreeZ, java.lang.String pteleWorld, java.lang.String pfreeWorld)
pname
- name of new jail zonepX1
- X coordinate of the first corner of cuboid of this jail zonepY1
- Y coordinate of the first corner of cuboid of this jail zonepZ1
- Z coordinate of the first corner of cuboid of this jail zonepX2
- X coordinate of the second corner of cuboid of this jail zonepY2
- Y coordinate of the second corner of cuboid of this jail zonepZ2
- Z coordinate of the second corner of cuboid of this jail zonepteleX
- X coordinate of the location, where players get teleported after being jailed in this jail zonepteleY
- Y coordinate of the location, where players get teleported after being jailed in this jail zonepteleZ
- Z coordinate of the location, where players get teleported after being jailed in this jail zonepfreeX
- X coordinate of the location, where players get teleported after being released from this jail zonepfreeY
- Y coordinate of the location, where players get teleported after being released from this jail zonepfreeZ
- Z coordinate of the location, where players get teleported after being released from this jail zonepteleWorld
- name of the world, which contains the location, where players get teleported after being jailed in this jail zonepfreeWorld
- name of the world, which contains the location, where players get teleported after being released from this jail zonepublic void delete()
public java.util.HashSet<JailCell> getCellList()
public double getDistance(org.bukkit.Location loc)
loc
- Location to checkpublic JailCell getEmptyCell()
public org.bukkit.Location getFirstCorner()
public java.lang.String getName()
public java.util.HashSet<JailPrisoner> getPrisoners()
public org.bukkit.Location getReleaseTeleportLocation()
public org.bukkit.Location getSecondCorner()
public org.bukkit.Location getTeleportLocation()
public java.lang.Boolean isInside(org.bukkit.Location loc)
loc
- Location to checkpublic void setFirstCorner(org.bukkit.Location input)
input
- Location of the new cornerpublic void setReleaseTeleportLocation(org.bukkit.Location input)
input
- New teleport locationpublic void setSecondCorner(org.bukkit.Location input)
input
- Location of the new cornerpublic void setTeleportLocation(org.bukkit.Location input)
input
- New teleport locationpublic void update()