mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-30 14:33:56 +01:00
SPIGOT-2923: Added PotionEffectType#getColor()
This commit is contained in:
parent
217358e845
commit
532457e41d
@ -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());
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user