Skip to content

Commit

Permalink
New methods
Browse files Browse the repository at this point in the history
  • Loading branch information
LoneDev6 committed Aug 28, 2024
1 parent 21ac4a4 commit 3a44217
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 2 deletions.
23 changes: 21 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<groupId>dev.lone</groupId>
<artifactId>api-itemsadder</artifactId>
<version>3.6.3-beta-14</version>
<version>4.0.2-alpha-test-8</version>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Expand All @@ -27,6 +27,11 @@
<id>spigot-repo</id>
<url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
</repository>
<!--LoneLibs-->
<repository>
<id>matteodev</id>
<url>https://www.matteodev.it/spigot/public/maven/</url>
</repository>
</repositories>

<distributionManagement>
Expand Down Expand Up @@ -75,14 +80,28 @@
</plugins>
</build>

<!-- Our dependencies -->
<dependencies>
<dependency>
<groupId>org.spigotmc</groupId>
<artifactId>spigot-api</artifactId>
<version>1.14.4-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>

<!-- Paper Only -->
<dependency>
<groupId>net.kyori</groupId>
<artifactId>adventure-api</artifactId>
<version>4.17.0-SNAPSHOT</version>
</dependency>

<dependency>
<groupId>dev.lone</groupId>
<artifactId>LoneLibs</artifactId>
<version>1.0.57</version>
<scope>provided</scope>
</dependency>

<dependency>
<groupId>org.jetbrains</groupId>
<artifactId>annotations</artifactId>
Expand Down
Original file line number Diff line number Diff line change
@@ -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;

/**
Expand Down Expand Up @@ -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.
*
Expand All @@ -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.
Expand Down

0 comments on commit 3a44217

Please sign in to comment.