diff --git a/common/src/main/java/dev/latvian/mods/kubejs/bindings/TextWrapper.java b/common/src/main/java/dev/latvian/mods/kubejs/bindings/TextWrapper.java index 0b9f5afd4..0d421660d 100644 --- a/common/src/main/java/dev/latvian/mods/kubejs/bindings/TextWrapper.java +++ b/common/src/main/java/dev/latvian/mods/kubejs/bindings/TextWrapper.java @@ -14,6 +14,8 @@ import net.minecraft.network.chat.Component; import net.minecraft.network.chat.ComponentContents; import net.minecraft.network.chat.MutableComponent; +import net.minecraft.network.chat.contents.ScoreContents; +import net.minecraft.network.chat.contents.SelectorContents; import net.minecraft.resources.ResourceLocation; import net.minecraft.util.GsonHelper; import org.jetbrains.annotations.Nullable; @@ -22,6 +24,7 @@ import java.util.Collection; import java.util.Map; import java.util.Objects; +import java.util.Optional; @Info("The hub for all things text components. Format text to your hearts content!") public class TextWrapper { @@ -180,6 +183,11 @@ public static MutableComponent join(MutableComponent separator, Iterable