Deprecate UnsafeValues#getSpawnEggLayerColor (#12041)

This commit is contained in:
Lulu13022002
2025-01-31 13:17:45 +01:00
committed by GitHub
parent 5bcfb12a99
commit e0711af5d5
2 changed files with 10 additions and 8 deletions

View File

@@ -751,9 +751,9 @@ public final class CraftMagicNumbers implements UnsafeValues {
final net.minecraft.world.entity.EntityType<?> nmsType = org.bukkit.craftbukkit.entity.CraftEntityType.bukkitToMinecraft(entityType);
final net.minecraft.world.item.SpawnEggItem eggItem = net.minecraft.world.item.SpawnEggItem.byId(nmsType);
if (eggItem != null) {
throw new UnsupportedOperationException("Not yet implemented");
throw new UnsupportedOperationException();
}
return eggItem == null ? null : org.bukkit.Color.fromRGB(1); // TODO
return null;
}
// Paper end - spawn egg color visibility