Adventure

Support for net.kyori:adventure types.

Installation

Add the following to your build configuration:

<dependencies>
    <dependency>
        <groupId>me.sparky983.warp</groupId>
        <artifactId>warp-adventure</artifactId>
        <version>0.2</version>
    </dependency>
</dependencies>

Mini Message

Warp provides a deserializer for Adventure's MiniMessage format. Warp's architecture allows for strong support of the features of MiniMessage such as and formatters.

Placeholders

A property method returning Component may declare any number of parameters to represent the placeholders to use during deserialization.

Regular Placeholders

A regular placeholder or component placeholder simply replaces the placeholder with the argument provided. The parameter can be most common types as well as Component.

Parsed Placeholders

@Placeholder.Parsed is used to insert a placeholder that will be parsed by MiniMessage:

Choice Placeholders

Choice placeholders allow for conditional replacements based on the value:

Format Placeholders

Format placeholders apply a format before replacing the placeholder:

Generic Deserializer

A Warp deserializer can be made from any Adventure component deserializer.

Last updated