Class MapScheme
java.lang.Object
studio.magemonkey.codex.mccore.gui.MapScheme
A scheme used by a menu
-
Method Summary
Modifier and TypeMethodDescriptionstatic MapSchemeCreates the schemes for the given plugin using the root folder as the place to load images for schemes from.voiddefineColor(String key, String colorHex) Defines a color used by the scheme if the scheme is not already finalizedvoiddefineFont(String key, MapFont defaultFont) Defines a font used by the scheme if the scheme is not already finalized.voidDefines an image used by the scheme if the scheme is not already finalized.voidDefines an image used by the scheme if the scheme is not already finalized.voidfinalize()Finalizes the scheme and loads all other schemesstatic MapSchemeRetrieves a scheme for the pluginbyteRetrieves a color for the schemeRetrieves a font from the schemeRetrieves an image from the schemegetKey()Retrieves the key for the schemelist(org.bukkit.plugin.java.JavaPlugin plugin) Retrieves a list of schemes for the plugin.
-
Method Details
-
create
Creates the schemes for the given plugin using the root folder as the place to load images for schemes from.- Parameters:
plugin- plugin referenceroot- the root folder for scheme images- Returns:
- the created map scheme
-
get
-
list
-
getKey
-
getImage
-
getFont
-
getColor
Retrieves a color for the scheme- Parameters:
key- color key- Returns:
- the color for the scheme
-
defineImg
Defines an image used by the scheme if the scheme is not already finalized. The image name will be used as the access key.- Parameters:
image- name of the embedded image resource to use
-
defineImg
-
defineFont
-
defineColor
-
finalize
-