3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-12-18 12:30:06 +01:00

SPIGOT-2923: Added PotionEffectType#getColor()

Dieser Commit ist enthalten in:
Lukas Hennig 2016-12-16 17:22:21 +01:00 committet von md_5
Ursprung 217358e845
Commit 532457e41d

Datei anzeigen

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