From 3a4421726fb6ed0e781eda65dfe245aebdf9b042 Mon Sep 17 00:00:00 2001 From: LoneDev <27242001+LoneDev6@users.noreply.github.com> Date: Wed, 28 Aug 2024 17:17:13 +0200 Subject: [PATCH] New methods --- pom.xml | 23 ++++++++++++++-- .../api/FontImages/FontImageWrapper.java | 26 +++++++++++++++++++ 2 files changed, 47 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index ef42c59..63dfb80 100644 --- a/pom.xml +++ b/pom.xml @@ -8,7 +8,7 @@ dev.lone api-itemsadder - 3.6.3-beta-14 + 4.0.2-alpha-test-8 UTF-8 @@ -27,6 +27,11 @@ spigot-repo https://hub.spigotmc.org/nexus/content/repositories/snapshots/ + + + matteodev + https://www.matteodev.it/spigot/public/maven/ + @@ -75,7 +80,6 @@ - org.spigotmc @@ -83,6 +87,21 @@ 1.14.4-R0.1-SNAPSHOT provided + + + + net.kyori + adventure-api + 4.17.0-SNAPSHOT + + + + dev.lone + LoneLibs + 1.0.57 + provided + + org.jetbrains annotations diff --git a/src/main/java/dev/lone/itemsadder/api/FontImages/FontImageWrapper.java b/src/main/java/dev/lone/itemsadder/api/FontImages/FontImageWrapper.java index cdbabf6..a2ed33b 100644 --- a/src/main/java/dev/lone/itemsadder/api/FontImages/FontImageWrapper.java +++ b/src/main/java/dev/lone/itemsadder/api/FontImages/FontImageWrapper.java @@ -1,8 +1,11 @@ package dev.lone.itemsadder.api.FontImages; import dev.lone.itemsadder.api.NotActuallyItemsAdderException; +import lonelibs.net.kyori.adventure.text.Component; import org.bukkit.ChatColor; import org.bukkit.entity.Player; +import org.bukkit.permissions.Permissible; +import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; /** @@ -31,6 +34,17 @@ public static String replaceFontImages(String string) throw new NotActuallyItemsAdderException(); } + @NotNull + public static Component replaceFontImages(Component adventureComponentLoneLibs) + { + throw new NotActuallyItemsAdderException(); + } + + public static net.kyori.adventure.text.Component replaceFontImages(net.kyori.adventure.text.Component adventureComponent) + { + throw new NotActuallyItemsAdderException(); + } + /** * Static utility method to replace all the font images placeholders in a String. * @@ -44,6 +58,18 @@ public static String replaceFontImages(Player player, String string) throw new NotActuallyItemsAdderException(); } + @NotNull + public static Component replaceFontImages(Permissible player, Component adventureComponentLoneLibs) + { + throw new NotActuallyItemsAdderException(); + } + + @NotNull + public static net.kyori.adventure.text.Component replaceFontImages(Permissible player, net.kyori.adventure.text.Component adventureComponent) + { + throw new NotActuallyItemsAdderException(); + } + /** * Shift a text/font image back or forward. * Useful to create complex HUDs or similar effects.