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:
@@ -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);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user