Package me.sytex.stylize
Class Stylize
java.lang.Object
me.sytex.stylize.Stylize
A library for formatting and sending text using Adventure's MiniMessage format, as well as legacy formats.
Provides support for both PlaceholderAPI and MiniPlaceholders integrations.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Builder class for constructingStylize
instances.static final class
Builder class for constructing and sending titles. -
Method Summary
Modifier and TypeMethodDescriptionstatic Stylize.StylizeBuilder
builder()
Returns a new builder for creating customized Stylize instances.@NotNull net.kyori.adventure.text.Component
deserialize
(@NotNull String string) Deserializes a string into a Component using MiniMessage format.@NotNull net.kyori.adventure.text.Component
deserialize
(@NotNull String string, @NotNull net.kyori.adventure.audience.Audience player) Deserializes a string into a Component using MiniMessage format with player context.@NotNull net.kyori.adventure.text.Component
deserialize
(@NotNull String string, @NotNull net.kyori.adventure.audience.Audience primaryPlayer, @NotNull net.kyori.adventure.audience.Audience secondaryPlayer) Deserializes a string into a Component using MiniMessage format with primary and secondary player context.@NotNull net.kyori.adventure.text.Component
deserialize
(@NotNull String string, @NotNull net.kyori.adventure.audience.Audience primaryPlayer, @NotNull net.kyori.adventure.audience.Audience secondaryPlayer, @Nullable net.kyori.adventure.pointer.Pointered target) Deserializes a string into a Component using MiniMessage format with primary and secondary player context and target.@NotNull net.kyori.adventure.text.Component
deserialize
(@NotNull String string, @NotNull net.kyori.adventure.audience.Audience primaryPlayer, @NotNull net.kyori.adventure.audience.Audience secondaryPlayer, @Nullable net.kyori.adventure.pointer.Pointered target, @NotNull net.kyori.adventure.text.minimessage.tag.resolver.TagResolver resolver) Deserializes a string into a Component using MiniMessage format with primary and secondary player context, target, and additional tag resolver.@NotNull net.kyori.adventure.text.Component
deserialize
(@NotNull String string, @NotNull net.kyori.adventure.audience.Audience primaryPlayer, @NotNull net.kyori.adventure.audience.Audience secondaryPlayer, @Nullable net.kyori.adventure.pointer.Pointered target, @NotNull net.kyori.adventure.text.minimessage.tag.resolver.TagResolver... resolvers) Deserializes a string into a Component using MiniMessage format with primary and secondary player context, target, and multiple additional tag resolvers.@NotNull net.kyori.adventure.text.Component
deserialize
(@NotNull String string, @NotNull net.kyori.adventure.audience.Audience primaryPlayer, @NotNull net.kyori.adventure.audience.Audience secondaryPlayer, @NotNull net.kyori.adventure.text.minimessage.tag.resolver.TagResolver resolver) Deserializes a string into a Component using MiniMessage format with primary and secondary player context and additional tag resolver.@NotNull net.kyori.adventure.text.Component
deserialize
(@NotNull String string, @NotNull net.kyori.adventure.audience.Audience primaryPlayer, @NotNull net.kyori.adventure.audience.Audience secondaryPlayer, @NotNull net.kyori.adventure.text.minimessage.tag.resolver.TagResolver... resolvers) Deserializes a string into a Component using MiniMessage format with primary and secondary player context and multiple additional tag resolvers.@NotNull net.kyori.adventure.text.Component
deserialize
(@NotNull String string, @NotNull net.kyori.adventure.audience.Audience player, @Nullable net.kyori.adventure.pointer.Pointered target) Deserializes a string into a Component using MiniMessage format with player context and target.@NotNull net.kyori.adventure.text.Component
deserialize
(@NotNull String string, @NotNull net.kyori.adventure.audience.Audience player, @Nullable net.kyori.adventure.pointer.Pointered target, @NotNull net.kyori.adventure.text.minimessage.tag.resolver.TagResolver resolver) Deserializes a string into a Component using MiniMessage format with player context, target, and additional tag resolver.@NotNull net.kyori.adventure.text.Component
deserialize
(@NotNull String string, @NotNull net.kyori.adventure.audience.Audience player, @Nullable net.kyori.adventure.pointer.Pointered target, @NotNull net.kyori.adventure.text.minimessage.tag.resolver.TagResolver... resolvers) Deserializes a string into a Component using MiniMessage format with player context, target, and multiple additional tag resolvers.@NotNull net.kyori.adventure.text.Component
deserialize
(@NotNull String string, @NotNull net.kyori.adventure.audience.Audience player, @NotNull net.kyori.adventure.text.minimessage.tag.resolver.TagResolver resolver) Deserializes a string into a Component using MiniMessage format with player context and additional tag resolver.@NotNull net.kyori.adventure.text.Component
deserialize
(@NotNull String string, @NotNull net.kyori.adventure.audience.Audience player, @NotNull net.kyori.adventure.text.minimessage.tag.resolver.TagResolver... resolvers) Deserializes a string into a Component using MiniMessage format with player context and multiple additional tag resolvers.@NotNull net.kyori.adventure.text.Component
deserialize
(@NotNull String string, @Nullable net.kyori.adventure.pointer.Pointered target) Deserializes a string into a Component using MiniMessage format with a target for placeholders.@NotNull net.kyori.adventure.text.Component
deserialize
(@NotNull String string, @Nullable net.kyori.adventure.pointer.Pointered target, @NotNull net.kyori.adventure.text.minimessage.tag.resolver.TagResolver resolver) Deserializes a string into a Component using MiniMessage format with a target and additional tag resolver.@NotNull net.kyori.adventure.text.Component
deserialize
(@NotNull String string, @Nullable net.kyori.adventure.pointer.Pointered target, @NotNull net.kyori.adventure.text.minimessage.tag.resolver.TagResolver... resolvers) Deserializes a string into a Component using MiniMessage format with a target and multiple additional tag resolvers.@NotNull net.kyori.adventure.text.Component
deserialize
(@NotNull String string, @NotNull net.kyori.adventure.text.minimessage.tag.resolver.TagResolver resolver) Deserializes a string into a Component using MiniMessage format with additional tag resolvers.@NotNull net.kyori.adventure.text.Component
deserialize
(@NotNull String string, @NotNull net.kyori.adventure.text.minimessage.tag.resolver.TagResolver... resolvers) Deserializes a string into a Component using MiniMessage format with multiple additional tag resolvers.void
sendActionBar
(@NotNull net.kyori.adventure.audience.Audience audience, @NotNull String string) Sends an action bar message to each recipient in the audience, deserializing the message for each recipient.void
sendActionBar
(@NotNull net.kyori.adventure.audience.Audience audience, @NotNull String string, @NotNull net.kyori.adventure.pointer.Pointered target) Sends an action bar message to each recipient in the audience with a target for placeholders, deserializing the message for each recipient.void
sendActionBar
(@NotNull net.kyori.adventure.audience.Audience audience, @NotNull String string, @NotNull net.kyori.adventure.pointer.Pointered target, @NotNull net.kyori.adventure.text.minimessage.tag.resolver.TagResolver resolver) Sends an action bar message to each recipient in the audience with a target and additional tag resolver, deserializing the message for each recipient.void
sendActionBar
(@NotNull net.kyori.adventure.audience.Audience audience, @NotNull String string, @NotNull net.kyori.adventure.pointer.Pointered target, @NotNull net.kyori.adventure.text.minimessage.tag.resolver.TagResolver... resolver) Sends an action bar message to each recipient in the audience with a target and multiple additional tag resolvers, deserializing the message for each recipient.void
sendActionBar
(@NotNull net.kyori.adventure.audience.Audience audience, @NotNull String string, @NotNull net.kyori.adventure.text.minimessage.tag.resolver.TagResolver resolver) Sends an action bar message to each recipient in the audience with an additional tag resolver, deserializing the message for each recipient.void
sendActionBar
(@NotNull net.kyori.adventure.audience.Audience audience, @NotNull String string, @NotNull net.kyori.adventure.text.minimessage.tag.resolver.TagResolver... resolver) Sends an action bar message to each recipient in the audience with multiple additional tag resolvers, deserializing the message for each recipient.void
sendMessage
(@NotNull net.kyori.adventure.audience.Audience audience, @NotNull String string) Sends a message to each recipient in the audience, deserializing the message for each recipient.void
sendMessage
(@NotNull net.kyori.adventure.audience.Audience audience, @NotNull String string, @NotNull net.kyori.adventure.pointer.Pointered target) Sends a message to each recipient in the audience with a target, deserializing the message for each recipient.void
sendMessage
(@NotNull net.kyori.adventure.audience.Audience audience, @NotNull String string, @NotNull net.kyori.adventure.pointer.Pointered target, @NotNull net.kyori.adventure.text.minimessage.tag.resolver.TagResolver resolver) Sends a message to each recipient in the audience with a target and additional tag resolver, deserializing the message for each recipient.void
sendMessage
(@NotNull net.kyori.adventure.audience.Audience audience, @NotNull String string, @NotNull net.kyori.adventure.pointer.Pointered target, @NotNull net.kyori.adventure.text.minimessage.tag.resolver.TagResolver... resolver) Sends a message to each recipient in the audience with a target and multiple additional tag resolvers, deserializing the message for each recipient.void
sendMessage
(@NotNull net.kyori.adventure.audience.Audience audience, @NotNull String string, @NotNull net.kyori.adventure.text.minimessage.tag.resolver.TagResolver resolver) Sends a message to each recipient in the audience with an additional tag resolver, deserializing the message for each recipient.void
sendMessage
(@NotNull net.kyori.adventure.audience.Audience audience, @NotNull String string, @NotNull net.kyori.adventure.text.minimessage.tag.resolver.TagResolver... resolver) Sends a message to each recipient in the audience with multiple additional tag resolvers, deserializing the message for each recipient.void
sendMessage
(@NotNull net.kyori.adventure.audience.Audience audience, @NotNull List<String> strings) Sends multiple messages to each recipient in the audience, deserializing each message for each recipient.void
sendMessage
(@NotNull net.kyori.adventure.audience.Audience audience, @NotNull List<String> strings, @NotNull net.kyori.adventure.pointer.Pointered target) Sends multiple messages to each recipient in the audience with a target for placeholders, deserializing each message for each recipient.void
sendMessage
(@NotNull net.kyori.adventure.audience.Audience audience, @NotNull List<String> strings, @NotNull net.kyori.adventure.pointer.Pointered target, @NotNull net.kyori.adventure.text.minimessage.tag.resolver.TagResolver resolver) Sends multiple messages to each recipient in the audience with a target and additional tag resolver, deserializing each message for each recipient.void
sendMessage
(@NotNull net.kyori.adventure.audience.Audience audience, @NotNull List<String> strings, @NotNull net.kyori.adventure.pointer.Pointered target, @NotNull net.kyori.adventure.text.minimessage.tag.resolver.TagResolver... resolver) Sends multiple messages to each recipient in the audience with a target and multiple additional tag resolvers, deserializing each message for each recipient.void
sendMessage
(@NotNull net.kyori.adventure.audience.Audience audience, @NotNull List<String> strings, @NotNull net.kyori.adventure.text.minimessage.tag.resolver.TagResolver resolver) Sends multiple messages to each recipient in the audience with an additional tag resolver, deserializing each message for each recipient.void
sendMessage
(@NotNull net.kyori.adventure.audience.Audience audience, @NotNull List<String> strings, @NotNull net.kyori.adventure.text.minimessage.tag.resolver.TagResolver... resolver) Sends multiple messages to each recipient in the audience with multiple additional tag resolvers, deserializing each message for each recipient.@NotNull Stylize.TitleBuilder
Creates a newStylize.TitleBuilder
instance for building and sending titles.void
sendTitle
(@NotNull net.kyori.adventure.audience.Audience audience, @NotNull String title, @NotNull String subTitle) Sends a title and subtitle to the specified audience.void
sendTitle
(@NotNull net.kyori.adventure.audience.Audience audience, @NotNull String title, @NotNull String subTitle, @NotNull Duration fadeIn, @NotNull Duration fadeOut) Sends a title and subtitle to the specified audience with custom fade-in and fade-out durations.void
sendTitle
(@NotNull net.kyori.adventure.audience.Audience audience, @NotNull String title, @NotNull String subTitle, @NotNull Duration fadeIn, @NotNull Duration stay, @NotNull Duration fadeOut) Sends a title and subtitle to the specified audience with custom fade-in, stay, and fade-out durations.void
sendTitle
(@NotNull net.kyori.adventure.audience.Audience audience, @NotNull String title, @NotNull String subTitle, @NotNull Duration fadeIn, @NotNull Duration stay, @NotNull Duration fadeOut, @NotNull net.kyori.adventure.pointer.Pointered target) Sends a title and subtitle to the specified audience with custom fade-in, stay, and fade-out durations, and a target.void
sendTitle
(@NotNull net.kyori.adventure.audience.Audience audience, @NotNull String title, @NotNull String subTitle, @NotNull Duration fadeIn, @NotNull Duration stay, @NotNull Duration fadeOut, @NotNull net.kyori.adventure.pointer.Pointered target, @NotNull net.kyori.adventure.text.minimessage.tag.resolver.TagResolver resolver) Sends a title and subtitle to the specified audience with custom fade-in, stay, and fade-out durations, a target, and a tag resolver.void
sendTitle
(@NotNull net.kyori.adventure.audience.Audience audience, @NotNull String title, @NotNull String subTitle, @NotNull Duration fadeIn, @NotNull Duration stay, @NotNull Duration fadeOut, @NotNull net.kyori.adventure.pointer.Pointered target, @NotNull net.kyori.adventure.text.minimessage.tag.resolver.TagResolver... resolvers) Sends a title and subtitle to the specified audience with custom fade-in, stay, and fade-out durations, a target, and multiple tag resolvers.void
sendTitle
(@NotNull net.kyori.adventure.audience.Audience audience, @NotNull String title, @NotNull String subTitle, @NotNull Duration fadeIn, @NotNull Duration stay, @NotNull Duration fadeOut, @NotNull net.kyori.adventure.text.minimessage.tag.resolver.TagResolver resolver) Sends a title and subtitle to the specified audience with custom fade-in, stay, and fade-out durations, and a tag resolver.void
sendTitle
(@NotNull net.kyori.adventure.audience.Audience audience, @NotNull String title, @NotNull String subTitle, @NotNull Duration fadeIn, @NotNull Duration stay, @NotNull Duration fadeOut, @NotNull net.kyori.adventure.text.minimessage.tag.resolver.TagResolver... resolvers) Sends a title and subtitle to the specified audience with custom fade-in, stay, and fade-out durations, and multiple tag resolvers.void
sendTitle
(@NotNull net.kyori.adventure.audience.Audience audience, @NotNull String title, @NotNull String subTitle, @NotNull Duration fadeIn, @NotNull Duration fadeOut, @NotNull net.kyori.adventure.pointer.Pointered target) Sends a title and subtitle to the specified audience with custom fade-in, fade-out durations, and a target.void
sendTitle
(@NotNull net.kyori.adventure.audience.Audience audience, @NotNull String title, @NotNull String subTitle, @NotNull Duration fadeIn, @NotNull Duration fadeOut, @NotNull net.kyori.adventure.pointer.Pointered target, @NotNull net.kyori.adventure.text.minimessage.tag.resolver.TagResolver resolver) Sends a title and subtitle to the specified audience with custom fade-in, fade-out durations, a target, and a tag resolver.void
sendTitle
(@NotNull net.kyori.adventure.audience.Audience audience, @NotNull String title, @NotNull String subTitle, @NotNull Duration fadeIn, @NotNull Duration fadeOut, @NotNull net.kyori.adventure.pointer.Pointered target, @NotNull net.kyori.adventure.text.minimessage.tag.resolver.TagResolver... resolvers) Sends a title and subtitle to the specified audience with custom fade-in, fade-out durations, a target, and multiple tag resolvers.void
sendTitle
(@NotNull net.kyori.adventure.audience.Audience audience, @NotNull String title, @NotNull String subTitle, @NotNull Duration fadeIn, @NotNull Duration fadeOut, @NotNull net.kyori.adventure.text.minimessage.tag.resolver.TagResolver resolver) Sends a title and subtitle to the specified audience with custom fade-in, fade-out durations, and a tag resolver.void
sendTitle
(@NotNull net.kyori.adventure.audience.Audience audience, @NotNull String title, @NotNull String subTitle, @NotNull Duration fadeIn, @NotNull Duration fadeOut, @NotNull net.kyori.adventure.text.minimessage.tag.resolver.TagResolver... resolvers) Sends a title and subtitle to the specified audience with custom fade-in, fade-out durations, and multiple tag resolvers.void
sendTitle
(@NotNull net.kyori.adventure.audience.Audience audience, @NotNull String title, @NotNull String subTitle, @NotNull net.kyori.adventure.pointer.Pointered target) Sends a title and subtitle to the specified audience with a target.void
sendTitle
(@NotNull net.kyori.adventure.audience.Audience audience, @NotNull String title, @NotNull String subTitle, @NotNull net.kyori.adventure.pointer.Pointered target, @NotNull net.kyori.adventure.text.minimessage.tag.resolver.TagResolver resolver) Sends a title and subtitle to the specified audience with a target and a tag resolver.void
sendTitle
(@NotNull net.kyori.adventure.audience.Audience audience, @NotNull String title, @NotNull String subTitle, @NotNull net.kyori.adventure.pointer.Pointered target, @NotNull net.kyori.adventure.text.minimessage.tag.resolver.TagResolver... resolvers) Sends a title and subtitle to the specified audience with a target and multiple tag resolvers.void
sendTitle
(@NotNull net.kyori.adventure.audience.Audience audience, @NotNull String title, @NotNull String subTitle, @NotNull net.kyori.adventure.text.minimessage.tag.resolver.TagResolver resolver) Sends a title and subtitle to the specified audience with a tag resolver.void
sendTitle
(@NotNull net.kyori.adventure.audience.Audience audience, @NotNull String title, @NotNull String subTitle, @NotNull net.kyori.adventure.text.minimessage.tag.resolver.TagResolver... resolvers) Sends a title and subtitle to the specified audience with multiple tag resolvers.@NotNull String
serialize
(@NotNull net.kyori.adventure.text.Component component) Serializes a Component into a MiniMessage format string.static @NotNull Stylize
stylize()
Creates a new Stylize instance with default configuration.
-
Method Details
-
stylize
Creates a new Stylize instance with default configuration. Enables both PlaceholderAPI and MiniPlaceholders integration if the plugins are available.- Returns:
- A new Stylize instance with default settings
-
builder
Returns a new builder for creating customized Stylize instances.- Returns:
- A new StylizeBuilder instance
-
deserialize
@NotNull public @NotNull net.kyori.adventure.text.Component deserialize(@NotNull @NotNull String string) Deserializes a string into a Component using MiniMessage format.- Parameters:
string
- The string to deserialize- Returns:
- The deserialized Component
-
deserialize
@NotNull public @NotNull net.kyori.adventure.text.Component deserialize(@NotNull @NotNull String string, @Nullable @Nullable net.kyori.adventure.pointer.Pointered target) Deserializes a string into a Component using MiniMessage format with a target for placeholders.- Parameters:
string
- The string to deserializetarget
- The target object for placeholders- Returns:
- The deserialized Component
-
deserialize
@NotNull public @NotNull net.kyori.adventure.text.Component deserialize(@NotNull @NotNull String string, @NotNull @NotNull net.kyori.adventure.text.minimessage.tag.resolver.TagResolver resolver) Deserializes a string into a Component using MiniMessage format with additional tag resolvers.- Parameters:
string
- The string to deserializeresolver
- Additional tag resolvers to use- Returns:
- The deserialized Component
-
deserialize
@NotNull public @NotNull net.kyori.adventure.text.Component deserialize(@NotNull @NotNull String string, @NotNull @NotNull net.kyori.adventure.text.minimessage.tag.resolver.TagResolver... resolvers) Deserializes a string into a Component using MiniMessage format with multiple additional tag resolvers.- Parameters:
string
- The string to deserializeresolvers
- Additional tag resolvers to use- Returns:
- The deserialized Component
-
deserialize
@NotNull public @NotNull net.kyori.adventure.text.Component deserialize(@NotNull @NotNull String string, @Nullable @Nullable net.kyori.adventure.pointer.Pointered target, @NotNull @NotNull net.kyori.adventure.text.minimessage.tag.resolver.TagResolver resolver) Deserializes a string into a Component using MiniMessage format with a target and additional tag resolver.- Parameters:
string
- The string to deserializetarget
- The target object for placeholdersresolver
- Additional tag resolver to use- Returns:
- The deserialized Component
-
deserialize
@NotNull public @NotNull net.kyori.adventure.text.Component deserialize(@NotNull @NotNull String string, @Nullable @Nullable net.kyori.adventure.pointer.Pointered target, @NotNull @NotNull net.kyori.adventure.text.minimessage.tag.resolver.TagResolver... resolvers) Deserializes a string into a Component using MiniMessage format with a target and multiple additional tag resolvers.- Parameters:
string
- The string to deserializetarget
- The target object for placeholdersresolvers
- Additional tag resolvers to use- Returns:
- The deserialized Component
-
deserialize
@NotNull public @NotNull net.kyori.adventure.text.Component deserialize(@NotNull @NotNull String string, @NotNull @NotNull net.kyori.adventure.audience.Audience player) Deserializes a string into a Component using MiniMessage format with player context. Processes PlaceholderAPI and MiniPlaceholder placeholders if enabled.- Parameters:
string
- The string to deserializeplayer
- The player audience for context- Returns:
- The deserialized Component
-
deserialize
@NotNull public @NotNull net.kyori.adventure.text.Component deserialize(@NotNull @NotNull String string, @NotNull @NotNull net.kyori.adventure.audience.Audience player, @Nullable @Nullable net.kyori.adventure.pointer.Pointered target) Deserializes a string into a Component using MiniMessage format with player context and target. Processes PlaceholderAPI and MiniPlaceholder placeholders if enabled.- Parameters:
string
- The string to deserializeplayer
- The player audience for contexttarget
- The target object for placeholders- Returns:
- The deserialized Component
-
deserialize
@NotNull public @NotNull net.kyori.adventure.text.Component deserialize(@NotNull @NotNull String string, @NotNull @NotNull net.kyori.adventure.audience.Audience player, @NotNull @NotNull net.kyori.adventure.text.minimessage.tag.resolver.TagResolver resolver) Deserializes a string into a Component using MiniMessage format with player context and additional tag resolver. Processes PlaceholderAPI and MiniPlaceholder placeholders if enabled.- Parameters:
string
- The string to deserializeplayer
- The player audience for contextresolver
- Additional tag resolver to use- Returns:
- The deserialized Component
-
deserialize
@NotNull public @NotNull net.kyori.adventure.text.Component deserialize(@NotNull @NotNull String string, @NotNull @NotNull net.kyori.adventure.audience.Audience player, @NotNull @NotNull net.kyori.adventure.text.minimessage.tag.resolver.TagResolver... resolvers) Deserializes a string into a Component using MiniMessage format with player context and multiple additional tag resolvers. Processes PlaceholderAPI and MiniPlaceholder placeholders if enabled.- Parameters:
string
- The string to deserializeplayer
- The player audience for contextresolvers
- Additional tag resolvers to use- Returns:
- The deserialized Component
-
deserialize
@NotNull public @NotNull net.kyori.adventure.text.Component deserialize(@NotNull @NotNull String string, @NotNull @NotNull net.kyori.adventure.audience.Audience player, @Nullable @Nullable net.kyori.adventure.pointer.Pointered target, @NotNull @NotNull net.kyori.adventure.text.minimessage.tag.resolver.TagResolver resolver) Deserializes a string into a Component using MiniMessage format with player context, target, and additional tag resolver. Processes PlaceholderAPI and MiniPlaceholder placeholders if enabled.- Parameters:
string
- The string to deserializeplayer
- The player audience for contexttarget
- The target object for placeholdersresolver
- Additional tag resolver to use- Returns:
- The deserialized Component
-
deserialize
@NotNull public @NotNull net.kyori.adventure.text.Component deserialize(@NotNull @NotNull String string, @NotNull @NotNull net.kyori.adventure.audience.Audience player, @Nullable @Nullable net.kyori.adventure.pointer.Pointered target, @NotNull @NotNull net.kyori.adventure.text.minimessage.tag.resolver.TagResolver... resolvers) Deserializes a string into a Component using MiniMessage format with player context, target, and multiple additional tag resolvers. Processes PlaceholderAPI and MiniPlaceholder placeholders if enabled.- Parameters:
string
- The string to deserializeplayer
- The player audience for contexttarget
- The target object for placeholdersresolvers
- Additional tag resolvers to use- Returns:
- The deserialized Component
-
deserialize
@NotNull public @NotNull net.kyori.adventure.text.Component deserialize(@NotNull @NotNull String string, @NotNull @NotNull net.kyori.adventure.audience.Audience primaryPlayer, @NotNull @NotNull net.kyori.adventure.audience.Audience secondaryPlayer) Deserializes a string into a Component using MiniMessage format with primary and secondary player context. Processes PlaceholderAPI and MiniPlaceholder relational placeholders if enabled.- Parameters:
string
- The string to deserializeprimaryPlayer
- The primary player audience for contextsecondaryPlayer
- The secondary player audience for relational placeholders- Returns:
- The deserialized Component
-
deserialize
@NotNull public @NotNull net.kyori.adventure.text.Component deserialize(@NotNull @NotNull String string, @NotNull @NotNull net.kyori.adventure.audience.Audience primaryPlayer, @NotNull @NotNull net.kyori.adventure.audience.Audience secondaryPlayer, @Nullable @Nullable net.kyori.adventure.pointer.Pointered target) Deserializes a string into a Component using MiniMessage format with primary and secondary player context and target. Processes PlaceholderAPI and MiniPlaceholder relational placeholders if enabled.- Parameters:
string
- The string to deserializeprimaryPlayer
- The primary player audience for contextsecondaryPlayer
- The secondary player audience for relational placeholderstarget
- The target object for placeholders- Returns:
- The deserialized Component
-
deserialize
@NotNull public @NotNull net.kyori.adventure.text.Component deserialize(@NotNull @NotNull String string, @NotNull @NotNull net.kyori.adventure.audience.Audience primaryPlayer, @NotNull @NotNull net.kyori.adventure.audience.Audience secondaryPlayer, @NotNull @NotNull net.kyori.adventure.text.minimessage.tag.resolver.TagResolver resolver) Deserializes a string into a Component using MiniMessage format with primary and secondary player context and additional tag resolver. Processes PlaceholderAPI and MiniPlaceholder relational placeholders if enabled.- Parameters:
string
- The string to deserializeprimaryPlayer
- The primary player audience for contextsecondaryPlayer
- The secondary player audience for relational placeholdersresolver
- Additional tag resolver to use- Returns:
- The deserialized Component
-
deserialize
@NotNull public @NotNull net.kyori.adventure.text.Component deserialize(@NotNull @NotNull String string, @NotNull @NotNull net.kyori.adventure.audience.Audience primaryPlayer, @NotNull @NotNull net.kyori.adventure.audience.Audience secondaryPlayer, @NotNull @NotNull net.kyori.adventure.text.minimessage.tag.resolver.TagResolver... resolvers) Deserializes a string into a Component using MiniMessage format with primary and secondary player context and multiple additional tag resolvers. Processes PlaceholderAPI and MiniPlaceholder relational placeholders if enabled.- Parameters:
string
- The string to deserializeprimaryPlayer
- The primary player audience for contextsecondaryPlayer
- The secondary player audience for relational placeholdersresolvers
- Additional tag resolvers to use- Returns:
- The deserialized Component
-
deserialize
@NotNull public @NotNull net.kyori.adventure.text.Component deserialize(@NotNull @NotNull String string, @NotNull @NotNull net.kyori.adventure.audience.Audience primaryPlayer, @NotNull @NotNull net.kyori.adventure.audience.Audience secondaryPlayer, @Nullable @Nullable net.kyori.adventure.pointer.Pointered target, @NotNull @NotNull net.kyori.adventure.text.minimessage.tag.resolver.TagResolver resolver) Deserializes a string into a Component using MiniMessage format with primary and secondary player context, target, and additional tag resolver. Processes PlaceholderAPI and MiniPlaceholder relational placeholders if enabled.- Parameters:
string
- The string to deserializeprimaryPlayer
- The primary player audience for contextsecondaryPlayer
- The secondary player audience for relational placeholderstarget
- The target object for placeholdersresolver
- Additional tag resolver to use- Returns:
- The deserialized Component
-
deserialize
@NotNull public @NotNull net.kyori.adventure.text.Component deserialize(@NotNull @NotNull String string, @NotNull @NotNull net.kyori.adventure.audience.Audience primaryPlayer, @NotNull @NotNull net.kyori.adventure.audience.Audience secondaryPlayer, @Nullable @Nullable net.kyori.adventure.pointer.Pointered target, @NotNull @NotNull net.kyori.adventure.text.minimessage.tag.resolver.TagResolver... resolvers) Deserializes a string into a Component using MiniMessage format with primary and secondary player context, target, and multiple additional tag resolvers. Processes PlaceholderAPI and MiniPlaceholder relational placeholders if enabled.- Parameters:
string
- The string to deserializeprimaryPlayer
- The primary player audience for contextsecondaryPlayer
- The secondary player audience for relational placeholderstarget
- The target object for placeholdersresolvers
- Additional tag resolvers to use- Returns:
- The deserialized Component
-
serialize
@NotNull public @NotNull String serialize(@NotNull @NotNull net.kyori.adventure.text.Component component) Serializes a Component into a MiniMessage format string.- Parameters:
component
- The Component to serialize- Returns:
- The serialized string in MiniMessage format
-
sendMessage
public void sendMessage(@NotNull @NotNull net.kyori.adventure.audience.Audience audience, @NotNull @NotNull String string) Sends a message to each recipient in the audience, deserializing the message for each recipient.- Parameters:
audience
- The audience to send the message tostring
- The message to send
-
sendMessage
public void sendMessage(@NotNull @NotNull net.kyori.adventure.audience.Audience audience, @NotNull @NotNull String string, @NotNull @NotNull net.kyori.adventure.pointer.Pointered target) Sends a message to each recipient in the audience with a target, deserializing the message for each recipient.- Parameters:
audience
- The audience to send the message tostring
- The message to sendtarget
- The target object for placeholders
-
sendMessage
public void sendMessage(@NotNull @NotNull net.kyori.adventure.audience.Audience audience, @NotNull @NotNull String string, @NotNull @NotNull net.kyori.adventure.text.minimessage.tag.resolver.TagResolver resolver) Sends a message to each recipient in the audience with an additional tag resolver, deserializing the message for each recipient.- Parameters:
audience
- The audience to send the message tostring
- The message to sendresolver
- Additional tag resolver to use
-
sendMessage
public void sendMessage(@NotNull @NotNull net.kyori.adventure.audience.Audience audience, @NotNull @NotNull String string, @NotNull @NotNull net.kyori.adventure.text.minimessage.tag.resolver.TagResolver... resolver) Sends a message to each recipient in the audience with multiple additional tag resolvers, deserializing the message for each recipient.- Parameters:
audience
- The audience to send the message tostring
- The message to sendresolver
- Additional tag resolvers to use
-
sendMessage
public void sendMessage(@NotNull @NotNull net.kyori.adventure.audience.Audience audience, @NotNull @NotNull String string, @NotNull @NotNull net.kyori.adventure.pointer.Pointered target, @NotNull @NotNull net.kyori.adventure.text.minimessage.tag.resolver.TagResolver resolver) Sends a message to each recipient in the audience with a target and additional tag resolver, deserializing the message for each recipient.- Parameters:
audience
- The audience to send the message tostring
- The message to sendtarget
- The target object for placeholdersresolver
- Additional tag resolver to use
-
sendMessage
public void sendMessage(@NotNull @NotNull net.kyori.adventure.audience.Audience audience, @NotNull @NotNull String string, @NotNull @NotNull net.kyori.adventure.pointer.Pointered target, @NotNull @NotNull net.kyori.adventure.text.minimessage.tag.resolver.TagResolver... resolver) Sends a message to each recipient in the audience with a target and multiple additional tag resolvers, deserializing the message for each recipient.- Parameters:
audience
- The audience to send the message tostring
- The message to sendtarget
- The target object for placeholdersresolver
- Additional tag resolvers to use
-
sendMessage
public void sendMessage(@NotNull @NotNull net.kyori.adventure.audience.Audience audience, @NotNull @NotNull List<String> strings) Sends multiple messages to each recipient in the audience, deserializing each message for each recipient.- Parameters:
audience
- The audience to send the messages tostrings
- The list of messages to send
-
sendMessage
public void sendMessage(@NotNull @NotNull net.kyori.adventure.audience.Audience audience, @NotNull @NotNull List<String> strings, @NotNull @NotNull net.kyori.adventure.pointer.Pointered target) Sends multiple messages to each recipient in the audience with a target for placeholders, deserializing each message for each recipient.- Parameters:
audience
- The audience to send the messages tostrings
- The list of messages to sendtarget
- The target object for placeholders
-
sendMessage
public void sendMessage(@NotNull @NotNull net.kyori.adventure.audience.Audience audience, @NotNull @NotNull List<String> strings, @NotNull @NotNull net.kyori.adventure.text.minimessage.tag.resolver.TagResolver resolver) Sends multiple messages to each recipient in the audience with an additional tag resolver, deserializing each message for each recipient.- Parameters:
audience
- The audience to send the messages tostrings
- The list of messages to sendresolver
- Additional tag resolver to use
-
sendMessage
public void sendMessage(@NotNull @NotNull net.kyori.adventure.audience.Audience audience, @NotNull @NotNull List<String> strings, @NotNull @NotNull net.kyori.adventure.text.minimessage.tag.resolver.TagResolver... resolver) Sends multiple messages to each recipient in the audience with multiple additional tag resolvers, deserializing each message for each recipient.- Parameters:
audience
- The audience to send the messages tostrings
- The list of messages to sendresolver
- Additional tag resolvers to use
-
sendMessage
public void sendMessage(@NotNull @NotNull net.kyori.adventure.audience.Audience audience, @NotNull @NotNull List<String> strings, @NotNull @NotNull net.kyori.adventure.pointer.Pointered target, @NotNull @NotNull net.kyori.adventure.text.minimessage.tag.resolver.TagResolver resolver) Sends multiple messages to each recipient in the audience with a target and additional tag resolver, deserializing each message for each recipient.- Parameters:
audience
- The audience to send the messages tostrings
- The list of messages to sendtarget
- The target object for placeholdersresolver
- Additional tag resolver to use
-
sendMessage
public void sendMessage(@NotNull @NotNull net.kyori.adventure.audience.Audience audience, @NotNull @NotNull List<String> strings, @NotNull @NotNull net.kyori.adventure.pointer.Pointered target, @NotNull @NotNull net.kyori.adventure.text.minimessage.tag.resolver.TagResolver... resolver) Sends multiple messages to each recipient in the audience with a target and multiple additional tag resolvers, deserializing each message for each recipient.- Parameters:
audience
- The audience to send the messages tostrings
- The list of messages to sendtarget
- The target object for placeholdersresolver
- Additional tag resolvers to use
-
sendActionBar
public void sendActionBar(@NotNull @NotNull net.kyori.adventure.audience.Audience audience, @NotNull @NotNull String string) Sends an action bar message to each recipient in the audience, deserializing the message for each recipient.- Parameters:
audience
- The audience to send the action bar tostring
- The action bar message to send
-
sendActionBar
public void sendActionBar(@NotNull @NotNull net.kyori.adventure.audience.Audience audience, @NotNull @NotNull String string, @NotNull @NotNull net.kyori.adventure.pointer.Pointered target) Sends an action bar message to each recipient in the audience with a target for placeholders, deserializing the message for each recipient.- Parameters:
audience
- The audience to send the action bar tostring
- The action bar message to sendtarget
- The target object for placeholders
-
sendActionBar
public void sendActionBar(@NotNull @NotNull net.kyori.adventure.audience.Audience audience, @NotNull @NotNull String string, @NotNull @NotNull net.kyori.adventure.text.minimessage.tag.resolver.TagResolver resolver) Sends an action bar message to each recipient in the audience with an additional tag resolver, deserializing the message for each recipient.- Parameters:
audience
- The audience to send the action bar tostring
- The action bar message to sendresolver
- Additional tag resolver to use
-
sendActionBar
public void sendActionBar(@NotNull @NotNull net.kyori.adventure.audience.Audience audience, @NotNull @NotNull String string, @NotNull @NotNull net.kyori.adventure.text.minimessage.tag.resolver.TagResolver... resolver) Sends an action bar message to each recipient in the audience with multiple additional tag resolvers, deserializing the message for each recipient.- Parameters:
audience
- The audience to send the action bar tostring
- The action bar message to sendresolver
- Additional tag resolvers to use
-
sendActionBar
public void sendActionBar(@NotNull @NotNull net.kyori.adventure.audience.Audience audience, @NotNull @NotNull String string, @NotNull @NotNull net.kyori.adventure.pointer.Pointered target, @NotNull @NotNull net.kyori.adventure.text.minimessage.tag.resolver.TagResolver resolver) Sends an action bar message to each recipient in the audience with a target and additional tag resolver, deserializing the message for each recipient.- Parameters:
audience
- The audience to send the action bar tostring
- The action bar message to sendtarget
- The target object for placeholdersresolver
- Additional tag resolver to use
-
sendActionBar
public void sendActionBar(@NotNull @NotNull net.kyori.adventure.audience.Audience audience, @NotNull @NotNull String string, @NotNull @NotNull net.kyori.adventure.pointer.Pointered target, @NotNull @NotNull net.kyori.adventure.text.minimessage.tag.resolver.TagResolver... resolver) Sends an action bar message to each recipient in the audience with a target and multiple additional tag resolvers, deserializing the message for each recipient.- Parameters:
audience
- The audience to send the action bar tostring
- The action bar message to sendtarget
- The target object for placeholdersresolver
- Additional tag resolvers to use
-
sendTitle
Creates a newStylize.TitleBuilder
instance for building and sending titles.- Returns:
- a new
Stylize.TitleBuilder
instance
-
sendTitle
public void sendTitle(@NotNull @NotNull net.kyori.adventure.audience.Audience audience, @NotNull @NotNull String title, @NotNull @NotNull String subTitle) Sends a title and subtitle to the specified audience.- Parameters:
audience
- the audience to send the title totitle
- the title textsubTitle
- the subtitle text
-
sendTitle
public void sendTitle(@NotNull @NotNull net.kyori.adventure.audience.Audience audience, @NotNull @NotNull String title, @NotNull @NotNull String subTitle, @NotNull @NotNull net.kyori.adventure.pointer.Pointered target) Sends a title and subtitle to the specified audience with a target.- Parameters:
audience
- the audience to send the title totitle
- the title textsubTitle
- the subtitle texttarget
- the target for the title
-
sendTitle
public void sendTitle(@NotNull @NotNull net.kyori.adventure.audience.Audience audience, @NotNull @NotNull String title, @NotNull @NotNull String subTitle, @NotNull @NotNull net.kyori.adventure.text.minimessage.tag.resolver.TagResolver resolver) Sends a title and subtitle to the specified audience with a tag resolver.- Parameters:
audience
- the audience to send the title totitle
- the title textsubTitle
- the subtitle textresolver
- the tag resolver for the title
-
sendTitle
public void sendTitle(@NotNull @NotNull net.kyori.adventure.audience.Audience audience, @NotNull @NotNull String title, @NotNull @NotNull String subTitle, @NotNull @NotNull net.kyori.adventure.text.minimessage.tag.resolver.TagResolver... resolvers) Sends a title and subtitle to the specified audience with multiple tag resolvers.- Parameters:
audience
- the audience to send the title totitle
- the title textsubTitle
- the subtitle textresolvers
- the tag resolvers for the title
-
sendTitle
public void sendTitle(@NotNull @NotNull net.kyori.adventure.audience.Audience audience, @NotNull @NotNull String title, @NotNull @NotNull String subTitle, @NotNull @NotNull net.kyori.adventure.pointer.Pointered target, @NotNull @NotNull net.kyori.adventure.text.minimessage.tag.resolver.TagResolver resolver) Sends a title and subtitle to the specified audience with a target and a tag resolver.- Parameters:
audience
- the audience to send the title totitle
- the title textsubTitle
- the subtitle texttarget
- the target for the titleresolver
- the tag resolver for the title
-
sendTitle
public void sendTitle(@NotNull @NotNull net.kyori.adventure.audience.Audience audience, @NotNull @NotNull String title, @NotNull @NotNull String subTitle, @NotNull @NotNull net.kyori.adventure.pointer.Pointered target, @NotNull @NotNull net.kyori.adventure.text.minimessage.tag.resolver.TagResolver... resolvers) Sends a title and subtitle to the specified audience with a target and multiple tag resolvers.- Parameters:
audience
- the audience to send the title totitle
- the title textsubTitle
- the subtitle texttarget
- the target for the titleresolvers
- the tag resolvers for the title
-
sendTitle
public void sendTitle(@NotNull @NotNull net.kyori.adventure.audience.Audience audience, @NotNull @NotNull String title, @NotNull @NotNull String subTitle, @NotNull @NotNull Duration fadeIn, @NotNull @NotNull Duration fadeOut) Sends a title and subtitle to the specified audience with custom fade-in and fade-out durations.- Parameters:
audience
- the audience to send the title totitle
- the title textsubTitle
- the subtitle textfadeIn
- the fade-in durationfadeOut
- the fade-out duration
-
sendTitle
public void sendTitle(@NotNull @NotNull net.kyori.adventure.audience.Audience audience, @NotNull @NotNull String title, @NotNull @NotNull String subTitle, @NotNull @NotNull Duration fadeIn, @NotNull @NotNull Duration fadeOut, @NotNull @NotNull net.kyori.adventure.pointer.Pointered target) Sends a title and subtitle to the specified audience with custom fade-in, fade-out durations, and a target.- Parameters:
audience
- the audience to send the title totitle
- the title textsubTitle
- the subtitle textfadeIn
- the fade-in durationfadeOut
- the fade-out durationtarget
- the target for the title
-
sendTitle
public void sendTitle(@NotNull @NotNull net.kyori.adventure.audience.Audience audience, @NotNull @NotNull String title, @NotNull @NotNull String subTitle, @NotNull @NotNull Duration fadeIn, @NotNull @NotNull Duration fadeOut, @NotNull @NotNull net.kyori.adventure.text.minimessage.tag.resolver.TagResolver resolver) Sends a title and subtitle to the specified audience with custom fade-in, fade-out durations, and a tag resolver.- Parameters:
audience
- the audience to send the title totitle
- the title textsubTitle
- the subtitle textfadeIn
- the fade-in durationfadeOut
- the fade-out durationresolver
- the tag resolver for the title
-
sendTitle
public void sendTitle(@NotNull @NotNull net.kyori.adventure.audience.Audience audience, @NotNull @NotNull String title, @NotNull @NotNull String subTitle, @NotNull @NotNull Duration fadeIn, @NotNull @NotNull Duration fadeOut, @NotNull @NotNull net.kyori.adventure.text.minimessage.tag.resolver.TagResolver... resolvers) Sends a title and subtitle to the specified audience with custom fade-in, fade-out durations, and multiple tag resolvers.- Parameters:
audience
- the audience to send the title totitle
- the title textsubTitle
- the subtitle textfadeIn
- the fade-in durationfadeOut
- the fade-out durationresolvers
- the tag resolvers for the title
-
sendTitle
public void sendTitle(@NotNull @NotNull net.kyori.adventure.audience.Audience audience, @NotNull @NotNull String title, @NotNull @NotNull String subTitle, @NotNull @NotNull Duration fadeIn, @NotNull @NotNull Duration fadeOut, @NotNull @NotNull net.kyori.adventure.pointer.Pointered target, @NotNull @NotNull net.kyori.adventure.text.minimessage.tag.resolver.TagResolver resolver) Sends a title and subtitle to the specified audience with custom fade-in, fade-out durations, a target, and a tag resolver.- Parameters:
audience
- the audience to send the title totitle
- the title textsubTitle
- the subtitle textfadeIn
- the fade-in durationfadeOut
- the fade-out durationtarget
- the target for the titleresolver
- the tag resolver for the title
-
sendTitle
public void sendTitle(@NotNull @NotNull net.kyori.adventure.audience.Audience audience, @NotNull @NotNull String title, @NotNull @NotNull String subTitle, @NotNull @NotNull Duration fadeIn, @NotNull @NotNull Duration fadeOut, @NotNull @NotNull net.kyori.adventure.pointer.Pointered target, @NotNull @NotNull net.kyori.adventure.text.minimessage.tag.resolver.TagResolver... resolvers) Sends a title and subtitle to the specified audience with custom fade-in, fade-out durations, a target, and multiple tag resolvers.- Parameters:
audience
- the audience to send the title totitle
- the title textsubTitle
- the subtitle textfadeIn
- the fade-in durationfadeOut
- the fade-out durationtarget
- the target for the titleresolvers
- the tag resolvers for the title
-
sendTitle
public void sendTitle(@NotNull @NotNull net.kyori.adventure.audience.Audience audience, @NotNull @NotNull String title, @NotNull @NotNull String subTitle, @NotNull @NotNull Duration fadeIn, @NotNull @NotNull Duration stay, @NotNull @NotNull Duration fadeOut) Sends a title and subtitle to the specified audience with custom fade-in, stay, and fade-out durations.- Parameters:
audience
- the audience to send the title totitle
- the title textsubTitle
- the subtitle textfadeIn
- the fade-in durationstay
- the stay durationfadeOut
- the fade-out duration
-
sendTitle
public void sendTitle(@NotNull @NotNull net.kyori.adventure.audience.Audience audience, @NotNull @NotNull String title, @NotNull @NotNull String subTitle, @NotNull @NotNull Duration fadeIn, @NotNull @NotNull Duration stay, @NotNull @NotNull Duration fadeOut, @NotNull @NotNull net.kyori.adventure.pointer.Pointered target) Sends a title and subtitle to the specified audience with custom fade-in, stay, and fade-out durations, and a target.- Parameters:
audience
- the audience to send the title totitle
- the title textsubTitle
- the subtitle textfadeIn
- the fade-in durationstay
- the stay durationfadeOut
- the fade-out durationtarget
- the target for the title
-
sendTitle
public void sendTitle(@NotNull @NotNull net.kyori.adventure.audience.Audience audience, @NotNull @NotNull String title, @NotNull @NotNull String subTitle, @NotNull @NotNull Duration fadeIn, @NotNull @NotNull Duration stay, @NotNull @NotNull Duration fadeOut, @NotNull @NotNull net.kyori.adventure.text.minimessage.tag.resolver.TagResolver resolver) Sends a title and subtitle to the specified audience with custom fade-in, stay, and fade-out durations, and a tag resolver.- Parameters:
audience
- the audience to send the title totitle
- the title textsubTitle
- the subtitle textfadeIn
- the fade-in durationstay
- the stay durationfadeOut
- the fade-out durationresolver
- the tag resolver for the title
-
sendTitle
public void sendTitle(@NotNull @NotNull net.kyori.adventure.audience.Audience audience, @NotNull @NotNull String title, @NotNull @NotNull String subTitle, @NotNull @NotNull Duration fadeIn, @NotNull @NotNull Duration stay, @NotNull @NotNull Duration fadeOut, @NotNull @NotNull net.kyori.adventure.text.minimessage.tag.resolver.TagResolver... resolvers) Sends a title and subtitle to the specified audience with custom fade-in, stay, and fade-out durations, and multiple tag resolvers.- Parameters:
audience
- the audience to send the title totitle
- the title textsubTitle
- the subtitle textfadeIn
- the fade-in durationstay
- the stay durationfadeOut
- the fade-out durationresolvers
- the tag resolvers for the title
-
sendTitle
public void sendTitle(@NotNull @NotNull net.kyori.adventure.audience.Audience audience, @NotNull @NotNull String title, @NotNull @NotNull String subTitle, @NotNull @NotNull Duration fadeIn, @NotNull @NotNull Duration stay, @NotNull @NotNull Duration fadeOut, @NotNull @NotNull net.kyori.adventure.pointer.Pointered target, @NotNull @NotNull net.kyori.adventure.text.minimessage.tag.resolver.TagResolver resolver) Sends a title and subtitle to the specified audience with custom fade-in, stay, and fade-out durations, a target, and a tag resolver.- Parameters:
audience
- the audience to send the title totitle
- the title textsubTitle
- the subtitle textfadeIn
- the fade-in durationstay
- the stay durationfadeOut
- the fade-out durationtarget
- the target for the titleresolver
- the tag resolver for the title
-
sendTitle
public void sendTitle(@NotNull @NotNull net.kyori.adventure.audience.Audience audience, @NotNull @NotNull String title, @NotNull @NotNull String subTitle, @NotNull @NotNull Duration fadeIn, @NotNull @NotNull Duration stay, @NotNull @NotNull Duration fadeOut, @NotNull @NotNull net.kyori.adventure.pointer.Pointered target, @NotNull @NotNull net.kyori.adventure.text.minimessage.tag.resolver.TagResolver... resolvers) Sends a title and subtitle to the specified audience with custom fade-in, stay, and fade-out durations, a target, and multiple tag resolvers.- Parameters:
audience
- the audience to send the title totitle
- the title textsubTitle
- the subtitle textfadeIn
- the fade-in durationstay
- the stay durationfadeOut
- the fade-out durationtarget
- the target for the titleresolvers
- the tag resolvers for the title
-