public class MockPotionEffectType
extends org.bukkit.potion.PotionEffectType
MockPotionEffectType mocks an actual PotionEffectType by taking an id, a name, whether it is
instant and a RGB Color variable.ABSORPTION, BAD_OMEN, BLINDNESS, CONDUIT_POWER, CONFUSION, DAMAGE_RESISTANCE, DOLPHINS_GRACE, FAST_DIGGING, FIRE_RESISTANCE, GLOWING, HARM, HEAL, HEALTH_BOOST, HERO_OF_THE_VILLAGE, HUNGER, INCREASE_DAMAGE, INVISIBILITY, JUMP, LEVITATION, LUCK, NIGHT_VISION, POISON, REGENERATION, SATURATION, SLOW, SLOW_DIGGING, SLOW_FALLING, SPEED, UNLUCK, WATER_BREATHING, WEAKNESS, WITHER| Constructor and Description |
|---|
MockPotionEffectType(int id,
java.lang.String name,
boolean instant,
org.bukkit.Color color) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
org.bukkit.Color |
getColor() |
double |
getDurationModifier()
Deprecated.
|
java.lang.String |
getName() |
int |
hashCode() |
boolean |
isInstant() |
public MockPotionEffectType(int id,
java.lang.String name,
boolean instant,
org.bukkit.Color color)
@Deprecated public double getDurationModifier()
getDurationModifier in class org.bukkit.potion.PotionEffectTypepublic java.lang.String getName()
getName in class org.bukkit.potion.PotionEffectTypepublic boolean isInstant()
isInstant in class org.bukkit.potion.PotionEffectTypepublic org.bukkit.Color getColor()
getColor in class org.bukkit.potion.PotionEffectTypepublic boolean equals(java.lang.Object obj)
equals in class org.bukkit.potion.PotionEffectTypepublic int hashCode()
hashCode in class org.bukkit.potion.PotionEffectType