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

    Constructors
    Constructor
    Description
    MockPotionEffectType(org.bukkit.NamespacedKey key, int id, String name, boolean instant, org.bukkit.Color color)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    org.bukkit.Color
     
    double
    Deprecated.
     
    int
     
    boolean
     

    Methods inherited from class org.bukkit.potion.PotionEffectType

    createEffect, getById, getByKey, getByName, getId, getKey, registerPotionEffectType, stopAcceptingRegistrations, toString, values

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • MockPotionEffectType

      public MockPotionEffectType(org.bukkit.NamespacedKey key, int id, String name, boolean instant, org.bukkit.Color color)
  • Method Details

    • getDurationModifier

      @Deprecated public double getDurationModifier()
      Deprecated.
      Specified by:
      getDurationModifier in class org.bukkit.potion.PotionEffectType
    • getName

      public String getName()
      Specified by:
      getName in class org.bukkit.potion.PotionEffectType
    • isInstant

      public boolean isInstant()
      Specified by:
      isInstant in class org.bukkit.potion.PotionEffectType
    • getColor

      public org.bukkit.Color getColor()
      Specified by:
      getColor in class org.bukkit.potion.PotionEffectType
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class org.bukkit.potion.PotionEffectType
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class org.bukkit.potion.PotionEffectType