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
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull MiniMessageWrapper.Builderbuilder()Creates a newMiniMessageWrapper.Builder.static @NotNull MiniMessageWrapperlegacy()Gets a simple instance with legacy code support.@NotNull net.kyori.adventure.text.ComponentParse a string into aComponentusingMiniMessage.@NotNull StringGet the modified string.static @NotNull MiniMessageWrapperstandard()Gets a simple instance.@NotNull MiniMessageWrapper.BuilderCreate aMiniMessageWrapper.Builderto modify options.
-
Method Details
-
standard
Gets a simple instance.
This will parse everything like
MiniMessagewill 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
MiniMessagewill 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 aComponentusingMiniMessage.- 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.Builderto modify options.- Returns:
- a builder
- Since:
- 2.1.2
-