Class HomeYMLManager

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

public class HomeYMLManager extends Object implements Home
The type Home yml manager.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Instantiates a new Home yml manager.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    addHome(@NotNull org.bukkit.entity.Player player, String name)
    Add home boolean.
    boolean
    deleteHome(@NotNull org.bukkit.entity.Player player, String homeName)
    Delete home boolean.
    boolean
    exist(@NotNull org.bukkit.entity.Player player, String homeName)
    Exist boolean.
    Gets cache manager.
    org.bukkit.Location
    getHomeLocation(@NotNull org.bukkit.entity.Player player, String homeName)
    Gets home location.
    int
    getHomeNumber(@NotNull org.bukkit.entity.Player player)
    Gets home number.
    List<org.bukkit.Location>
    getHomesLocation(org.bukkit.entity.Player player)
    Gets homes location.
    getHomesName(@NotNull org.bukkit.entity.Player player)
    Gets homes name.
    boolean
    isStatus(org.bukkit.entity.Player player)
    Is status boolean.
    boolean
    relocateHome(org.bukkit.entity.Player player, String homeName, org.bukkit.Location newLocation)
    Relocate home boolean.
    boolean
    renameHome(@NotNull org.bukkit.entity.Player player, String oldHomeName, String newHomeName)
    Rename home boolean.
    boolean
    setHome(@NotNull org.bukkit.entity.Player player, String name, org.bukkit.Location location)
    Sets home.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface fr.fuzeblocks.homeplugin.home.Home

    isYAML
  • Constructor Details

    • HomeYMLManager

      public HomeYMLManager(File file)
      Instantiates a new Home yml manager.
      Parameters:
      file - the file
  • Method Details

    • addHome

      public boolean addHome(@NotNull @NotNull 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(@NotNull @NotNull 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(@NotNull @NotNull 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(@NotNull @NotNull 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(@NotNull @NotNull 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(@NotNull @NotNull 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(@NotNull @NotNull 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(@NotNull @NotNull 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