Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-18 04:20:08 +01:00
SPIGOT-2923: Added PotionEffectType#getColor()
Dieser Commit ist enthalten in:
Ursprung
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());
|
||||
}
|
||||
}
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren