Skip to content

Instantly share code, notes, and snippets.

View CubBossa's full-sized avatar
🤖
We are the robots

Leo CubBossa

🤖
We are the robots
  • Germany
View GitHub Profile
@CubBossa
CubBossa / ComponentSplit.java
Created June 1, 2023 08:12
Adventure Component - Split components by their content and a regex
package de.cubbossa.translations;
import net.kyori.adventure.text.Component;
import net.kyori.adventure.text.TextComponent;
import net.kyori.adventure.text.format.TextColor;
import org.intellij.lang.annotations.RegExp;
import org.jetbrains.annotations.Contract;
import org.jetbrains.annotations.NotNull;
import java.util.Arrays;