Package com.stardevllc.starhomes
Class Home
java.lang.Object
com.stardevllc.starhomes.Home
Represents a home
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleangetName()The name of the homegetOwner()The owner of the homecom.stardevllc.starmclib.PositionThe position of the homeThe world name of the homeinthashCode()voidsetLocation(org.bukkit.Location location) Sets the location of this homevoidSets the name of this homevoidsetPosition(com.stardevllc.starmclib.Position position) Sets the position of this homevoidsetWorldName(String worldName) Sets the world name of this homevoidteleport(org.bukkit.entity.Entity entity) Teleports an entity to this home
-
Constructor Details
-
Home
Constructs a new home- Parameters:
owner- The owner of the homename- The name of the homeworldName- The world name of the homeposition- The position of the home
-
Home
Constructs a new home- Parameters:
owner- The owner of the homename- The name of the homelocation- The location of the home
-
-
Method Details
-
setName
Sets the name of this home- Parameters:
name- The new name
-
setWorldName
Sets the world name of this home- Parameters:
worldName- The new world name
-
setPosition
public void setPosition(com.stardevllc.starmclib.Position position) Sets the position of this home- Parameters:
position- The new position
-
setLocation
public void setLocation(org.bukkit.Location location) Sets the location of this home- Parameters:
location- The new locatioin
-
teleport
public void teleport(org.bukkit.entity.Entity entity) Teleports an entity to this home- Parameters:
entity- The entity
-
getOwner
The owner of the home- Returns:
- The owner
-
getName
The name of the home- Returns:
- The name
-
getWorldName
The world name of the home- Returns:
- The world name
-
getPosition
public com.stardevllc.starmclib.Position getPosition()The position of the home- Returns:
- The position
-
equals
-
hashCode
public int hashCode()
-