Enum Constant Summary
Enum Constants
Field Summary
Fields
protected static final Theme []
Method Summary
All Methods Static Methods Instance Methods Concrete Methods
Applies the theme color to a given string
Gets an ItemStack with a pre-populated lore and name with themed colors.
static io.github.thebusybiscuit.slimefun4.api.items.SlimefunItemStack
Gets a SlimefunItemStack with a pre-populated lore and name with themed colors.
Returns the name of this enum constant, as contained in the
declaration.
Returns the enum constant of this class with the specified name.
Returns an array containing the constants of this enum class, in
the order they are declared.
Enum Constant Details
WARNING
public static final Theme WARNING
ERROR
public static final Theme ERROR
NOTICE
public static final Theme NOTICE
PASSIVE
public static final Theme PASSIVE
SUCCESS
public static final Theme SUCCESS
MAIN
public static final Theme MAIN
CLICK_INFO
public static final Theme CLICK_INFO
RESEARCH
public static final Theme RESEARCH
CRAFTING
public static final Theme CRAFTING
MACHINE
public static final Theme MACHINE
MECHANISM
public static final Theme MECHANISM
FUEL
public static final Theme FUEL
MATERIAL_CLASS
public static final Theme MATERIAL_CLASS
RECIPE_TYPE
public static final Theme RECIPE_TYPE
GUIDE
public static final Theme GUIDE
Field Details
cachedValues
protected static final Theme [] cachedValues
Method Details
values
public static Theme [] values ()
Returns an array containing the constants of this enum class, in
the order they are declared.
Returns:
an array containing the constants of this enum class, in the order they are declared
valueOf
Returns the enum constant of this class with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this class. (Extraneous whitespace characters are
not permitted.)
Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum class has no constant with the specified name
NullPointerException - if the argument is null
toString
Returns the name of this enum constant, as contained in the
declaration. This method may be overridden, though it typically
isn't necessary or desirable. An enum class should override this
method when a more "programmer-friendly" string form exists.
Overrides:
toString in class Enum <Theme >
Returns:
the name of this enum constant
themedSlimefunItemStack
@Nonnull
@ParametersAreNonnullByDefault
public static io.github.thebusybiscuit.slimefun4.api.items.SlimefunItemStack themedSlimefunItemStack (String id,
ItemStack itemStack,
Theme themeType,
String name,
String ... lore)
Gets a SlimefunItemStack with a pre-populated lore and name with themed colors.
Parameters:
id - The ID for the new SlimefunItemStack
itemStack - The vanilla ItemStack used to base the SlimefunItemStack on
themeType - The Theme ChatColor to apply to the SlimefunItemStack name
name - The name to apply to the SlimefunItemStack
lore - The lore lines for the SlimefunItemStack. Lore is book-ended with empty strings.
Returns:
Returns the new SlimefunItemStack
applyThemeToString
@Nonnull
@ParametersAreNonnullByDefault
public static String applyThemeToString (Theme themeType,
String string)
Applies the theme color to a given string
Parameters:
themeType - The Theme to apply the color from
string - The string to apply the color to
Returns:
Returns the string provides preceded by the color
themedItemStack
Gets an ItemStack with a pre-populated lore and name with themed colors.
Parameters:
material - The Material used to base the ItemStack on
themeType - The Theme ChatColor to apply to the ItemStack name
name - The name to apply to the ItemStack
lore - The lore lines for the ItemStack . Lore is book-ended with empty strings.
Returns:
Returns the new ItemStack