Class ExternalHeads
- java.lang.Object
-
- com.github.crashdemons.playerheads.compatibility.plugins.heads.ExternalHeads
-
public class ExternalHeads extends Object
Maintains a list of recognized custom-heads from other plugins and their recommended handling (modifiability by the current plugin).- Author:
- crashdemons (crashenator at gmail.com)
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static HeadModificationHandling
getHandling(String username)
Retrieves the recommended handling (modifiability) for previously-recorded head usernamestatic HeadModificationHandling
getHandling(UUID id)
Retrieves the recommended handling (modifiability) for previously-recorded head UUIDstatic void
loadIdsFromConfig(ConfigurationSection section, String key, HeadModificationHandling handling)
Load a list of UUIDs from a configuration entry and records their recommended handling.static void
loadNamesFromConfig(ConfigurationSection section, String key, HeadModificationHandling handling)
Load a list of usernames from a configuration entry and records their recommended handling.
-
-
-
Method Detail
-
loadNamesFromConfig
public static void loadNamesFromConfig(ConfigurationSection section, String key, HeadModificationHandling handling)
Load a list of usernames from a configuration entry and records their recommended handling.- Parameters:
section
-key
-handling
- the recommended handling for these head usernames
-
loadIdsFromConfig
public static void loadIdsFromConfig(ConfigurationSection section, String key, HeadModificationHandling handling)
Load a list of UUIDs from a configuration entry and records their recommended handling.- Parameters:
section
-key
-handling
- the recommended handling for these head UUIDs
-
getHandling
@Nullable public static HeadModificationHandling getHandling(String username)
Retrieves the recommended handling (modifiability) for previously-recorded head username- Parameters:
username
-- Returns:
- the handling
-
getHandling
@Nullable public static HeadModificationHandling getHandling(UUID id)
Retrieves the recommended handling (modifiability) for previously-recorded head UUID- Parameters:
id
-- Returns:
- the handling
-
-