Package be.seeseemelk.mockbukkit.potion
Class MockPotionEffectType
java.lang.Object
org.bukkit.potion.PotionEffectType
be.seeseemelk.mockbukkit.potion.MockPotionEffectType
- All Implemented Interfaces:
org.bukkit.Keyed
public class MockPotionEffectType
extends org.bukkit.potion.PotionEffectType
This
MockPotionEffectType mocks an actual PotionEffectType by taking an id, a name, whether it is
instant and a RGB Color variable.-
Field Summary
Fields inherited from class org.bukkit.potion.PotionEffectType
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 Summary
ConstructorsConstructorDescriptionMockPotionEffectType(org.bukkit.NamespacedKey key, int id, String name, boolean instant, org.bukkit.Color color) -
Method Summary
Methods inherited from class org.bukkit.potion.PotionEffectType
createEffect, getById, getByKey, getByName, getId, getKey, registerPotionEffectType, stopAcceptingRegistrations, toString, values
-
Constructor Details
-
MockPotionEffectType
public MockPotionEffectType(org.bukkit.NamespacedKey key, int id, String name, boolean instant, org.bukkit.Color color)
-
-
Method Details
-
getDurationModifier
Deprecated.- Specified by:
getDurationModifierin classorg.bukkit.potion.PotionEffectType
-
getName
- Specified by:
getNamein classorg.bukkit.potion.PotionEffectType
-
isInstant
public boolean isInstant()- Specified by:
isInstantin classorg.bukkit.potion.PotionEffectType
-
getColor
public org.bukkit.Color getColor()- Specified by:
getColorin classorg.bukkit.potion.PotionEffectType
-
equals
- Overrides:
equalsin classorg.bukkit.potion.PotionEffectType
-
hashCode
public int hashCode()- Overrides:
hashCodein classorg.bukkit.potion.PotionEffectType
-