mirror of
https://github.com/PaperMC/Paper.git
synced 2025-02-27 06:31:57 +01:00
SPIGOT-2923: Added PotionEffectType#getColor()
This commit is contained in:
parent
217358e845
commit
532457e41d
1 changed files with 6 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue