mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-18 05:43:49 -07:00
SPIGOT-2923: Added PotionEffectType#getColor()
By: Lukas Hennig <lukas@wirsindwir.de>
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user