Class IntelligentItemColor
java.lang.Object
io.github.rysefoxx.inventory.plugin.content.IntelligentItemColor
- Since:
- 4/12/2022
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull IntelligentItemColor.Builderbuilder()net.md_5.bungee.api.ChatColorgetColor()If the color is already set, return it.booleanisBold()booleanisItalic()booleanbooleanboolean
-
Method Details
-
builder
-
getColor
@Internal @NotNull public net.md_5.bungee.api.ChatColor getColor()If the color is already set, return it. If it's not set, try to get it from the color wrapper. If the color wrapper is null, throw an exception- Returns:
- The color of the text.
-
isBold
public boolean isBold()- Returns:
- true if the color is bold
-
isUnderline
public boolean isUnderline()- Returns:
- true if the color is underlined
-
isItalic
public boolean isItalic()- Returns:
- true if the color is italic
-
isObfuscated
public boolean isObfuscated()- Returns:
- true if the color is obfuscated
-
isStrikeThrough
public boolean isStrikeThrough()- Returns:
- true if the color is striked through
-