Class Home

java.lang.Object
com.stardevllc.starhomes.Home

public class Home extends Object
Represents a home
  • Constructor Details

    • Home

      public Home(UUID owner, String name, String worldName, com.stardevllc.starmclib.Position position)
      Constructs a new home
      Parameters:
      owner - The owner of the home
      name - The name of the home
      worldName - The world name of the home
      position - The position of the home
    • Home

      public Home(UUID owner, String name, org.bukkit.Location location)
      Constructs a new home
      Parameters:
      owner - The owner of the home
      name - The name of the home
      location - The location of the home
  • Method Details

    • setName

      public void setName(String name)
      Sets the name of this home
      Parameters:
      name - The new name
    • setWorldName

      public void setWorldName(String worldName)
      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

      public UUID getOwner()
      The owner of the home
      Returns:
      The owner
    • getName

      public String getName()
      The name of the home
      Returns:
      The name
    • getWorldName

      public String 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

      public final boolean equals(Object object)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object