9
0
mirror of https://github.com/HibiscusMC/HibiscusCommons.git synced 2025-12-19 15:09:26 +00:00

feat: add nms-methods for getting color of item

This commit is contained in:
Boy0000
2025-05-09 15:12:08 +02:00
parent 111d323b70
commit 7ef40c1f0f
7 changed files with 198 additions and 0 deletions

View File

@@ -1,7 +1,12 @@
package me.lojosho.hibiscuscommons.nms;
import org.bukkit.Color;
import org.bukkit.entity.Entity;
import org.bukkit.entity.Player;
import org.bukkit.inventory.ItemStack;
import org.jetbrains.annotations.NotNull;
import javax.annotation.Nullable;
public interface NMSUtils {
@@ -9,4 +14,9 @@ public interface NMSUtils {
Entity getEntity(int entityId);
@Nullable
Color getColor(ItemStack itemStack);
ItemStack setColor(@NotNull ItemStack itemStack, Color color);
}