Package dev.majek.hexnicks.message
Interface MiniMessageWrapper
public interface MiniMessageWrapper
A wrapper for
MiniMessage
to add a few more methods for more customization.- Since:
- 2.1.2
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull MiniMessageWrapper.Builder
builder()
Creates a newMiniMessageWrapper.Builder
.static @NotNull MiniMessageWrapper
legacy()
Gets a simple instance with legacy code support.@NotNull net.kyori.adventure.text.Component
Parse a string into aComponent
usingMiniMessage
.@NotNull String
Get the modified string.static @NotNull MiniMessageWrapper
standard()
Gets a simple instance.@NotNull MiniMessageWrapper.Builder
Create aMiniMessageWrapper.Builder
to modify options.
-
Method Details
-
standard
Gets a simple instance.
This will parse everything like
MiniMessage
will except for advanced transformations.Builder options with this instance:
- Gradients: True
- Hex Colors: True
- Standard Colors: True
- Legacy Colors: False
- Advanced Transformations: False
- Returns:
- a simple instance
- Since:
- 2.1.2
-
legacy
Gets a simple instance with legacy code support.
This will parse everything like
MiniMessage
will with the addition of legacy code support and the subtraction of advanced transformation support.Builder options with this instance:
- Gradients: True
- Hex Colors: True
- Standard Colors: True
- Legacy Colors: True
- Advanced Transformations: False
- Returns:
- a simple instance
- Since:
- 2.1.2
-
mmParse
Parse a string into aComponent
usingMiniMessage
.- Parameters:
mmString
- the string to parse- Returns:
- component
- Since:
- 2.1.2
-
mmString
Get the modified string.- Parameters:
mmString
- string to modify- Returns:
- modified string
- Since:
- 2.1.2
-
builder
Creates a new
MiniMessageWrapper.Builder
.Default builder options:
- Gradients: True
- Hex Colors: True
- Standard Colors: True
- Legacy Colors: False
- Advanced Transformations: False
- Returns:
- a builder
- Since:
- 2.1.2
-
toBuilder
Create aMiniMessageWrapper.Builder
to modify options.- Returns:
- a builder
- Since:
- 2.1.2
-