Class KeySerializer.PlayerKey
java.lang.Object
co.crystaldev.alpinecore.framework.storage.KeySerializer.PlayerKey
- All Implemented Interfaces:
KeySerializer<org.bukkit.OfflinePlayer,
String>
- Enclosing interface:
- KeySerializer<T1,
T2>
public static final class KeySerializer.PlayerKey
extends Object
implements KeySerializer<org.bukkit.OfflinePlayer,String>
Serializer for player types
- Since:
- 0.1.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface co.crystaldev.alpinecore.framework.storage.KeySerializer
KeySerializer.NumberKey, KeySerializer.PlayerKey, KeySerializer.StringKey, KeySerializer.UuidKey
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.bukkit.OfflinePlayer
deserialize
(String input) Deserializes the "simple" key object into an "advanced" object type.serialize
(org.bukkit.OfflinePlayer input) Serializes the "advanced" object into a "simple" key type.
-
Constructor Details
-
PlayerKey
public PlayerKey()
-
-
Method Details
-
serialize
Description copied from interface:KeySerializer
Serializes the "advanced" object into a "simple" key type.- Specified by:
serialize
in interfaceKeySerializer<org.bukkit.OfflinePlayer,
String> - Parameters:
input
- The advanced object- Returns:
- The key representation
-
deserialize
Description copied from interface:KeySerializer
Deserializes the "simple" key object into an "advanced" object type.- Specified by:
deserialize
in interfaceKeySerializer<org.bukkit.OfflinePlayer,
String> - Parameters:
input
- The key object- Returns:
- The advanced representation
-