Package be.seeseemelk.mockbukkit.potion
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.bukkit.potion.PotionEffectTypeintstatic org.bukkit.potion.PotionEffectgetPotionEffectFromData(com.google.gson.JsonElement potionEffectData) List<org.bukkit.potion.PotionEffect> static List<org.bukkit.potion.PotionEffect> getPotionEffectsFromData(com.google.gson.JsonObject data) booleanbooleanboolean
-
Constructor Details
-
MockInternalPotionData
public MockInternalPotionData(org.bukkit.NamespacedKey namespacedKey)
-
-
Method Details
-
getEffectType
public org.bukkit.potion.PotionEffectType getEffectType()- Specified by:
getEffectTypein interfaceorg.bukkit.potion.PotionType.InternalPotionData
-
getPotionEffects
- Specified by:
getPotionEffectsin interfaceorg.bukkit.potion.PotionType.InternalPotionData
-
isInstant
public boolean isInstant()- Specified by:
isInstantin interfaceorg.bukkit.potion.PotionType.InternalPotionData
-
isUpgradeable
public boolean isUpgradeable()- Specified by:
isUpgradeablein interfaceorg.bukkit.potion.PotionType.InternalPotionData
-
isExtendable
public boolean isExtendable()- Specified by:
isExtendablein interfaceorg.bukkit.potion.PotionType.InternalPotionData
-
getMaxLevel
public int getMaxLevel()- Specified by:
getMaxLevelin interfaceorg.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)
-