Class MockInternalPotionData

java.lang.Object
be.seeseemelk.mockbukkit.potion.MockInternalPotionData
All Implemented Interfaces:
org.bukkit.potion.PotionType.InternalPotionData

public class MockInternalPotionData extends Object implements org.bukkit.potion.PotionType.InternalPotionData
  • Constructor Details

    • MockInternalPotionData

      public MockInternalPotionData(org.bukkit.NamespacedKey namespacedKey)
  • Method Details

    • getEffectType

      public org.bukkit.potion.PotionEffectType getEffectType()
      Specified by:
      getEffectType in interface org.bukkit.potion.PotionType.InternalPotionData
    • getPotionEffects

      public List<org.bukkit.potion.PotionEffect> getPotionEffects()
      Specified by:
      getPotionEffects in interface org.bukkit.potion.PotionType.InternalPotionData
    • isInstant

      public boolean isInstant()
      Specified by:
      isInstant in interface org.bukkit.potion.PotionType.InternalPotionData
    • isUpgradeable

      public boolean isUpgradeable()
      Specified by:
      isUpgradeable in interface org.bukkit.potion.PotionType.InternalPotionData
    • isExtendable

      public boolean isExtendable()
      Specified by:
      isExtendable in interface org.bukkit.potion.PotionType.InternalPotionData
    • getMaxLevel

      public int getMaxLevel()
      Specified by:
      getMaxLevel in interface org.bukkit.potion.PotionType.InternalPotionData
    • getPotionEffectFromData

      @Internal public static org.bukkit.potion.PotionEffect getPotionEffectFromData(com.google.gson.JsonElement potionEffectData)
    • getPotionEffectsFromData

      @Internal public static List<org.bukkit.potion.PotionEffect> getPotionEffectsFromData(com.google.gson.JsonObject data)