Interface MonkeyLibStyle
- All Known Subinterfaces:
ModdedMonkeyLibStyle
- All Known Implementing Classes:
MonkeyLibStyleImpl
public interface MonkeyLibStyle
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classstatic interface -
Method Summary
Modifier and TypeMethodDescriptioncopyEventsFrom(MonkeyLibStyle from) static MonkeyLibStyleempty()Creates an empty stylebooleanequals(MonkeyLibStyle other) Checks if this style is equal to the provided one.withColor(int rgbColor) Returns a new style with the provided rgb color.withCopyToClipboard(String value) @Nullable MonkeyLibStylewithFormattingCode(char code) Returns a new style with the formatting code.withItalic(boolean italic) Returns a new style with the provided italic attribute.withOpenFile(Path value) withOpenUrl(URI value) withRunCommand(String value) withShowText(MonkeyLibText value) withSuggestCommand(String value) withUnderline(boolean underline) Returns a new style with the provided underline attribute.
-
Method Details
-
withShowText
-
withOpenUrl
-
withOpenFile
-
withRunCommand
-
withSuggestCommand
-
withCopyToClipboard
-
copyEventsFrom
-
withItalic
Returns a new style with the provided italic attribute.- Parameters:
italic- if the new style should be italic- Returns:
- a new style with the provided italic attribute
-
withUnderline
Returns a new style with the provided underline attribute.- Parameters:
underline- if the new style should be underlined- Returns:
- a new style with the provided underline attribute
-
withColor
Returns a new style with the provided rgb color.- Parameters:
rgbColor- the color in the 0xRRGGBB format- Returns:
- a new style with the provided color attribute
-
withFormattingCode
Returns a new style with the formatting code.- Parameters:
code- the formatting code to use- Returns:
- a new style with the formatting code
-
equals
Checks if this style is equal to the provided one.- Parameters:
other- the style to check against- Returns:
- if this style is equal to the provided one
-
empty
Creates an empty style- Returns:
- an empty style
-