From 532457e41d1928bb0589b241b9f38584fbbd62cc Mon Sep 17 00:00:00 2001 From: Lukas Hennig Date: Fri, 16 Dec 2016 17:22:21 +0100 Subject: [PATCH] SPIGOT-2923: Added PotionEffectType#getColor() --- .../bukkit/craftbukkit/potion/CraftPotionEffectType.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/java/org/bukkit/craftbukkit/potion/CraftPotionEffectType.java b/src/main/java/org/bukkit/craftbukkit/potion/CraftPotionEffectType.java index 8ce39c6d68..b06fddf729 100644 --- a/src/main/java/org/bukkit/craftbukkit/potion/CraftPotionEffectType.java +++ b/src/main/java/org/bukkit/craftbukkit/potion/CraftPotionEffectType.java @@ -2,6 +2,7 @@ package org.bukkit.craftbukkit.potion; import net.minecraft.server.MobEffectList; +import org.bukkit.Color; import org.bukkit.potion.PotionEffectType; public class CraftPotionEffectType extends PotionEffectType { @@ -87,4 +88,9 @@ public class CraftPotionEffectType extends PotionEffectType { public boolean isInstant() { return handle.isInstant(); } + + @Override + public Color getColor() { + return Color.fromRGB(handle.getColor()); + } }