public class PotionMetaMock extends ItemMetaMock implements org.bukkit.inventory.meta.PotionMeta
ItemMetaMock mocks the implementation of SuspiciousStewMeta.| Constructor and Description |
|---|
PotionMetaMock() |
PotionMetaMock(org.bukkit.inventory.meta.PotionMeta meta) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addCustomEffect(@NotNull org.bukkit.potion.PotionEffect effect,
boolean overwrite) |
boolean |
clearCustomEffects() |
PotionMetaMock |
clone() |
boolean |
equals(java.lang.Object obj) |
@NotNull org.bukkit.potion.PotionData |
getBasePotionData() |
@Nullable org.bukkit.Color |
getColor() |
@NotNull java.util.List<org.bukkit.potion.PotionEffect> |
getCustomEffects() |
boolean |
hasColor() |
boolean |
hasCustomEffect(@NotNull org.bukkit.potion.PotionEffectType type) |
boolean |
hasCustomEffects() |
int |
hashCode() |
boolean |
removeCustomEffect(@NotNull org.bukkit.potion.PotionEffectType type) |
void |
setBasePotionData(@NotNull org.bukkit.potion.PotionData data) |
void |
setColor(@Nullable org.bukkit.Color color) |
boolean |
setMainEffect(@NotNull org.bukkit.potion.PotionEffectType type) |
addAttributeModifier, addEnchant, addItemFlags, assertHasNoLore, assertLore, assertLore, deserialize, getAttributeModifiers, getAttributeModifiers, getAttributeModifiers, getCustomModelData, getCustomTagContainer, getDamage, getDisplayName, getEnchantLevel, getEnchants, getItemFlags, getLocalizedName, getLore, getPersistentDataContainer, getRepairCost, hasAttributeModifiers, hasConflictingEnchant, hasCustomModelData, hasDamage, hasDisplayName, hasEnchant, hasEnchants, hasItemFlag, hasLocalizedName, hasLore, hasRepairCost, isUnbreakable, removeAttributeModifier, removeAttributeModifier, removeAttributeModifier, removeEnchant, removeItemFlags, serialize, setAttributeModifiers, setCustomModelData, setDamage, setDisplayName, setLocalizedName, setLore, setRepairCost, setUnbreakable, setVersionfinalize, getClass, notify, notifyAll, toString, wait, wait, waitaddAttributeModifier, addEnchant, addItemFlags, getAttributeModifiers, getAttributeModifiers, getAttributeModifiers, getCustomModelData, getCustomTagContainer, getDisplayName, getEnchantLevel, getEnchants, getItemFlags, getLocalizedName, getLore, hasAttributeModifiers, hasConflictingEnchant, hasCustomModelData, hasDisplayName, hasEnchant, hasEnchants, hasItemFlag, hasLocalizedName, hasLore, isUnbreakable, removeAttributeModifier, removeAttributeModifier, removeAttributeModifier, removeEnchant, removeItemFlags, setAttributeModifiers, setCustomModelData, setDisplayName, setLocalizedName, setLore, setUnbreakable, setVersionpublic PotionMetaMock()
public PotionMetaMock(org.bukkit.inventory.meta.PotionMeta meta)
public int hashCode()
hashCode in class ItemMetaMockpublic boolean equals(java.lang.Object obj)
equals in class ItemMetaMockpublic PotionMetaMock clone()
clone in interface org.bukkit.inventory.meta.Damageableclone in interface org.bukkit.inventory.meta.ItemMetaclone in interface org.bukkit.inventory.meta.PotionMetaclone in interface org.bukkit.inventory.meta.Repairableclone in class ItemMetaMockpublic boolean addCustomEffect(@NotNull
@NotNull org.bukkit.potion.PotionEffect effect,
boolean overwrite)
addCustomEffect in interface org.bukkit.inventory.meta.PotionMetapublic boolean clearCustomEffects()
clearCustomEffects in interface org.bukkit.inventory.meta.PotionMeta@NotNull public @NotNull java.util.List<org.bukkit.potion.PotionEffect> getCustomEffects()
getCustomEffects in interface org.bukkit.inventory.meta.PotionMetapublic boolean hasCustomEffect(@NotNull
@NotNull org.bukkit.potion.PotionEffectType type)
hasCustomEffect in interface org.bukkit.inventory.meta.PotionMetapublic boolean hasCustomEffects()
hasCustomEffects in interface org.bukkit.inventory.meta.PotionMetapublic boolean removeCustomEffect(@NotNull
@NotNull org.bukkit.potion.PotionEffectType type)
removeCustomEffect in interface org.bukkit.inventory.meta.PotionMetapublic boolean hasColor()
hasColor in interface org.bukkit.inventory.meta.PotionMeta@Nullable public @Nullable org.bukkit.Color getColor()
getColor in interface org.bukkit.inventory.meta.PotionMetapublic void setColor(@Nullable
@Nullable org.bukkit.Color color)
setColor in interface org.bukkit.inventory.meta.PotionMetapublic void setBasePotionData(@NotNull
@NotNull org.bukkit.potion.PotionData data)
setBasePotionData in interface org.bukkit.inventory.meta.PotionMeta@NotNull public @NotNull org.bukkit.potion.PotionData getBasePotionData()
getBasePotionData in interface org.bukkit.inventory.meta.PotionMetapublic boolean setMainEffect(@NotNull
@NotNull org.bukkit.potion.PotionEffectType type)
setMainEffect in interface org.bukkit.inventory.meta.PotionMeta