This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import net.kyori.adventure.text.Component; | |
import net.kyori.adventure.text.TextComponent; | |
import net.kyori.adventure.text.format.NamedTextColor; | |
import net.kyori.adventure.text.format.Style; | |
import net.kyori.adventure.text.format.TextDecoration; | |
import net.minestom.server.utils.StringUtils; | |
import java.util.*; | |
public class ComponentWrapper { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import net.kyori.adventure.text.Component; | |
import net.kyori.adventure.text.minimessage.MiniMessage; | |
public final class MiniMessageTemplate { | |
private MiniMessageTemplate() {} | |
public static final StringTemplate.Processor<Component, RuntimeException> MM = stringTemplate -> { | |
String interpolated = STR.process(stringTemplate); | |
MiniMessage mm = MiniMessage.miniMessage(); | |
return mm.deserialize(interpolated); |