mirror of
https://github.com/PaperMC/Paper.git
synced 2025-07-29 19:22:07 -07:00
Deprecate UnsafeValues#getSpawnEggLayerColor (#12041)
This commit is contained in:
@@ -8,7 +8,6 @@ import org.bukkit.attribute.Attribute;
|
||||
import org.bukkit.attribute.AttributeModifier;
|
||||
import org.bukkit.block.Biome;
|
||||
import org.bukkit.block.data.BlockData;
|
||||
import org.bukkit.damage.DamageEffect;
|
||||
import org.bukkit.damage.DamageSource;
|
||||
import org.bukkit.damage.DamageType;
|
||||
import org.bukkit.entity.Entity;
|
||||
@@ -359,14 +358,17 @@ public interface UnsafeValues {
|
||||
// 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.
|
||||
* entity type, or {@code 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
|
||||
*
|
||||
* @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
|
||||
* @deprecated the color is no longer available to the server
|
||||
*/
|
||||
@Nullable org.bukkit.Color getSpawnEggLayerColor(org.bukkit.entity.EntityType entityType, int layer);
|
||||
@Deprecated(since = "1.21.4")
|
||||
@Nullable Color getSpawnEggLayerColor(EntityType entityType, int layer);
|
||||
// Paper end - spawn egg color visibility
|
||||
|
||||
// Paper start - lifecycle event API
|
||||
|
Reference in New Issue
Block a user