SPIGOT-2923: Added PotionEffectType#getColor()

This commit is contained in:
Lukas Hennig 2016-12-16 17:22:21 +01:00 committed by md_5
parent 217358e845
commit 532457e41d

View File

@ -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());
}
}