public class TownBlock
extends java.lang.Object
Constructor and Description |
---|
TownBlock(int x,
int z,
TownyWorld world) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
boolean |
equals(java.lang.Object obj) |
Coord |
getCoord() |
java.lang.String |
getName() |
TownyPermission |
getPermissions() |
double |
getPlotPrice() |
Resident |
getResident() |
Town |
getTown() |
TownBlockType |
getType() |
TownyWorld |
getWorld() |
WorldCoord |
getWorldCoord() |
int |
getX() |
int |
getZ() |
boolean |
hasResident() |
boolean |
hasTown() |
boolean |
isChanged()
Have the permissions been manually changed.
|
boolean |
isForSale() |
boolean |
isHomeBlock() |
boolean |
isLocked()
Is the TownBlock locked
|
boolean |
isOutpost() |
boolean |
isOwner(TownBlockOwner owner) |
boolean |
isWarZone() |
void |
setChanged(boolean isChanged)
Flag the permissions as changed.
|
void |
setLocked(boolean locked) |
void |
setName(java.lang.String newName) |
void |
setOutpost(boolean outpost) |
void |
setPermissions(java.lang.String line) |
void |
setPlotPrice(double ForSale) |
void |
setResident(Resident resident) |
void |
setTown(Town town) |
void |
setType(int typeId) |
void |
setType(java.lang.String typeName) |
void |
setType(TownBlockType type) |
void |
setWorld(TownyWorld world) |
void |
setX(int x) |
void |
setZ(int z) |
java.lang.String |
toString() |
public TownBlock(int x, int z, TownyWorld world)
public void setTown(Town town)
public Town getTown() throws NotRegisteredException
NotRegisteredException
public boolean hasTown()
public void setResident(Resident resident)
public Resident getResident() throws NotRegisteredException
NotRegisteredException
public boolean hasResident()
public boolean isOwner(TownBlockOwner owner)
public void setPlotPrice(double ForSale)
public double getPlotPrice()
public boolean isForSale()
public void setPermissions(java.lang.String line)
public TownyPermission getPermissions()
public boolean isChanged()
public void setChanged(boolean isChanged)
isChanged
- the isChanged to setpublic boolean isOutpost()
public void setOutpost(boolean outpost)
outpost
- the outpost to setpublic TownBlockType getType()
public void setType(TownBlockType type)
public void setType(int typeId)
public void setType(java.lang.String typeName) throws TownyException
TownyException
public boolean isHomeBlock()
public void setName(java.lang.String newName)
public java.lang.String getName()
public void setX(int x)
public int getX()
public void setZ(int z)
public int getZ()
public Coord getCoord()
public WorldCoord getWorldCoord()
public boolean isLocked()
public void setLocked(boolean locked)
locked
- is the to locked to setpublic void setWorld(TownyWorld world)
public TownyWorld getWorld()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public void clear()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean isWarZone()