Class HomeManager

java.lang.Object
fr.fuzeblocks.homeplugin.home.HomeManager
All Implemented Interfaces:
Home

public class HomeManager extends Object implements Home
The type Home manager.
  • Method Details

    • getInstance

      public static HomeManager getInstance()
      Gets instance.
      Returns:
      the instance
    • addHome

      public boolean addHome(org.bukkit.entity.Player player, String name)
      Description copied from interface: Home
      Add home boolean.
      Specified by:
      addHome in interface Home
      Parameters:
      player - the player
      name - the name
      Returns:
      the boolean
    • setHome

      public boolean setHome(org.bukkit.entity.Player player, String name, org.bukkit.Location location)
      Description copied from interface: Home
      Sets home.
      Specified by:
      setHome in interface Home
      Parameters:
      player - the player
      name - the name
      location - the location
      Returns:
      the home
    • renameHome

      public boolean renameHome(org.bukkit.entity.Player player, String oldHomeName, String newHomeName)
      Description copied from interface: Home
      Rename home boolean.
      Specified by:
      renameHome in interface Home
      Parameters:
      player - the player
      oldHomeName - the old home name
      newHomeName - the new home name
      Returns:
      the boolean
    • relocateHome

      public boolean relocateHome(org.bukkit.entity.Player player, String homeName, org.bukkit.Location newLocation)
      Description copied from interface: Home
      Relocate home boolean.
      Specified by:
      relocateHome in interface Home
      Parameters:
      player - the player
      homeName - the home name
      newLocation - the new location
      Returns:
      the boolean
    • getHomesLocation

      public List<org.bukkit.Location> getHomesLocation(org.bukkit.entity.Player player)
      Description copied from interface: Home
      Gets homes location.
      Specified by:
      getHomesLocation in interface Home
      Parameters:
      player - the player
      Returns:
      the homes location
    • getHomeNumber

      public int getHomeNumber(org.bukkit.entity.Player player)
      Description copied from interface: Home
      Gets home number.
      Specified by:
      getHomeNumber in interface Home
      Parameters:
      player - the player
      Returns:
      the home number
    • getHomesName

      public List<String> getHomesName(org.bukkit.entity.Player player)
      Description copied from interface: Home
      Gets homes name.
      Specified by:
      getHomesName in interface Home
      Parameters:
      player - the player
      Returns:
      the homes name
    • getCacheManager

      public CacheManager getCacheManager()
      Description copied from interface: Home
      Gets cache manager.
      Specified by:
      getCacheManager in interface Home
      Returns:
      the cache manager
    • getHomeLocation

      public org.bukkit.Location getHomeLocation(org.bukkit.entity.Player player, String homeName)
      Description copied from interface: Home
      Gets home location.
      Specified by:
      getHomeLocation in interface Home
      Parameters:
      player - the player
      homeName - the home name
      Returns:
      the home location
    • deleteHome

      public boolean deleteHome(org.bukkit.entity.Player player, String homeName)
      Description copied from interface: Home
      Delete home boolean.
      Specified by:
      deleteHome in interface Home
      Parameters:
      player - the player
      homeName - the home name
      Returns:
      the boolean
    • isStatus

      public boolean isStatus(org.bukkit.entity.Player player)
      Description copied from interface: Home
      Is status boolean.
      Specified by:
      isStatus in interface Home
      Parameters:
      player - the player
      Returns:
      the boolean
    • exist

      public boolean exist(org.bukkit.entity.Player player, String homeName)
      Description copied from interface: Home
      Exist boolean.
      Specified by:
      exist in interface Home
      Parameters:
      player - the player
      homeName - the home name
      Returns:
      the boolean