2024-01-27 19:32:05 +01:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Luis <luisc99@icloud.com>
|
|
|
|
Date: Thu, 11 Jan 2024 19:58:17 +0100
|
|
|
|
Subject: [PATCH] Add api for spawn egg texture colors
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/org/bukkit/UnsafeValues.java b/src/main/java/org/bukkit/UnsafeValues.java
|
2024-07-06 21:19:14 +02:00
|
|
|
index 960afe1bd12296797dca98bbfc66a54c5f1331d1..1887cc2882ea197481b39693cc48aa16ccde5782 100644
|
2024-01-27 19:32:05 +01:00
|
|
|
--- a/src/main/java/org/bukkit/UnsafeValues.java
|
|
|
|
+++ b/src/main/java/org/bukkit/UnsafeValues.java
|
2024-07-06 21:19:14 +02:00
|
|
|
@@ -256,4 +256,17 @@ public interface UnsafeValues {
|
2024-05-23 19:32:02 +02:00
|
|
|
// Paper end - namespaced key biome methods
|
2024-01-27 19:32:05 +01:00
|
|
|
|
2024-05-23 19:32:02 +02:00
|
|
|
String getStatisticCriteriaKey(@NotNull org.bukkit.Statistic statistic); // Paper - fix custom stats criteria creation
|
2024-01-27 19:32:05 +01:00
|
|
|
+
|
|
|
|
+ // Paper start - spawn egg color visibility
|
|
|
|
+ /**
|
|
|
|
+ * Obtains the underlying color informating for a spawn egg of a given
|
|
|
|
+ * entity type, or null if the entity passed does not have a spawn egg.
|
|
|
|
+ * Spawn eggs have two colors - the background layer (0), and the
|
|
|
|
+ * foreground layer (1)
|
|
|
|
+ * @param entityType The entity type to get the color for
|
|
|
|
+ * @param layer The texture layer to get a color for
|
|
|
|
+ * @return The color of the layer for the entity's spawn egg
|
|
|
|
+ */
|
|
|
|
+ @Nullable org.bukkit.Color getSpawnEggLayerColor(org.bukkit.entity.EntityType entityType, int layer);
|
|
|
|
+ // Paper end - spawn egg color visibility
|
|
|
|
}
|