SPIGOT-2923: Added PotionEffectType#getColor()
By: Lukas Hennig <lukas@wirsindwir.de>
This commit is contained in:
parent
fe586949bf
commit
348449a44a
1 changed files with 6 additions and 0 deletions
|
@ -2,6 +2,7 @@ package org.bukkit.craftbukkit.potion;
|
||||||
|
|
||||||
import net.minecraft.server.MobEffectList;
|
import net.minecraft.server.MobEffectList;
|
||||||
|
|
||||||
|
import org.bukkit.Color;
|
||||||
import org.bukkit.potion.PotionEffectType;
|
import org.bukkit.potion.PotionEffectType;
|
||||||
|
|
||||||
public class CraftPotionEffectType extends PotionEffectType {
|
public class CraftPotionEffectType extends PotionEffectType {
|
||||||
|
@ -87,4 +88,9 @@ public class CraftPotionEffectType extends PotionEffectType {
|
||||||
public boolean isInstant() {
|
public boolean isInstant() {
|
||||||
return handle.isInstant();
|
return handle.isInstant();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Color getColor() {
|
||||||
|
return Color.fromRGB(handle.getColor());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue