Package fr.fuzeblocks.homeplugin.home
Class LocalHomeStore
java.lang.Object
fr.fuzeblocks.homeplugin.home.LocalHomeStore
- All Implemented Interfaces:
HomeRequestStore
Local in-memory implementation of HomeRequestStore for storing player homes.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd home.voidClear all homes.voidclearHomes(UUID playerId) Clear homes.Gets homes.voidrelocateHome(UUID playerId, String homeName, org.bukkit.Location newLocation) Relocate home.voidremoveHome(UUID playerId, String homeName) Remove home.
-
Constructor Details
-
LocalHomeStore
public LocalHomeStore()
-
-
Method Details
-
addHome
Description copied from interface:HomeRequestStoreAdd home.- Specified by:
addHomein interfaceHomeRequestStore- Parameters:
playerId- the player idhomeName- the home namelocation- the location
-
removeHome
Description copied from interface:HomeRequestStoreRemove home.- Specified by:
removeHomein interfaceHomeRequestStore- Parameters:
playerId- the player idhomeName- the home name
-
relocateHome
Description copied from interface:HomeRequestStoreRelocate home.- Specified by:
relocateHomein interfaceHomeRequestStore- Parameters:
playerId- the player idhomeName- the home namenewLocation- the new location
-
getHomes
Description copied from interface:HomeRequestStoreGets homes.- Specified by:
getHomesin interfaceHomeRequestStore- Parameters:
playerId- the player id- Returns:
- the homes
-
clearHomes
Description copied from interface:HomeRequestStoreClear homes.- Specified by:
clearHomesin interfaceHomeRequestStore- Parameters:
playerId- the player id
-
clearAllHomes
public void clearAllHomes()Description copied from interface:HomeRequestStoreClear all homes.- Specified by:
clearAllHomesin interfaceHomeRequestStore
-