Class LocalHomeStore

java.lang.Object
fr.fuzeblocks.homeplugin.home.LocalHomeStore
All Implemented Interfaces:
HomeRequestStore

public class LocalHomeStore extends Object implements HomeRequestStore
Local in-memory implementation of HomeRequestStore for storing player homes.
  • Constructor Details

    • LocalHomeStore

      public LocalHomeStore()
  • Method Details

    • addHome

      public void addHome(UUID playerId, String homeName, org.bukkit.Location location)
      Description copied from interface: HomeRequestStore
      Add home.
      Specified by:
      addHome in interface HomeRequestStore
      Parameters:
      playerId - the player id
      homeName - the home name
      location - the location
    • removeHome

      public void removeHome(UUID playerId, String homeName)
      Description copied from interface: HomeRequestStore
      Remove home.
      Specified by:
      removeHome in interface HomeRequestStore
      Parameters:
      playerId - the player id
      homeName - the home name
    • relocateHome

      public void relocateHome(UUID playerId, String homeName, org.bukkit.Location newLocation)
      Description copied from interface: HomeRequestStore
      Relocate home.
      Specified by:
      relocateHome in interface HomeRequestStore
      Parameters:
      playerId - the player id
      homeName - the home name
      newLocation - the new location
    • getHomes

      public Map<String,org.bukkit.Location> getHomes(UUID playerId)
      Description copied from interface: HomeRequestStore
      Gets homes.
      Specified by:
      getHomes in interface HomeRequestStore
      Parameters:
      playerId - the player id
      Returns:
      the homes
    • clearHomes

      public void clearHomes(UUID playerId)
      Description copied from interface: HomeRequestStore
      Clear homes.
      Specified by:
      clearHomes in interface HomeRequestStore
      Parameters:
      playerId - the player id
    • clearAllHomes

      public void clearAllHomes()
      Description copied from interface: HomeRequestStore
      Clear all homes.
      Specified by:
      clearAllHomes in interface HomeRequestStore