Class PotionMetaMock
java.lang.Object
be.seeseemelk.mockbukkit.inventory.meta.ItemMetaMock
be.seeseemelk.mockbukkit.inventory.meta.PotionMetaMock
- All Implemented Interfaces:
Cloneable,ConfigurationSerializable,Damageable,ItemMeta,PotionMeta,Repairable,PersistentDataHolder
This
ItemMetaMock mocks the implementation of SuspiciousStewMeta.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddCustomEffect(@NotNull PotionEffect effect, boolean overwrite) boolean@NotNull PotionMetaMockclone()boolean@NotNull PotionData@Nullable ColorgetColor()@NotNull List<PotionEffect>booleanhasColor()booleanhasCustomEffect(@NotNull PotionEffectType type) booleaninthashCode()booleanremoveCustomEffect(@NotNull PotionEffectType type) voidsetBasePotionData(@NotNull PotionData data) voidbooleansetMainEffect(@NotNull PotionEffectType type) Methods inherited from class be.seeseemelk.mockbukkit.inventory.meta.ItemMetaMock
addAttributeModifier, addEnchant, addItemFlags, assertComponentLore, assertHasNoLore, assertLore, assertLore, deserialize, displayName, displayName, getAsString, getAttributeModifiers, getAttributeModifiers, getAttributeModifiers, getCanDestroy, getCanPlaceOn, getCustomModelData, getCustomTagContainer, getDamage, getDestroyableKeys, getDisplayName, getDisplayNameComponent, getEnchantLevel, getEnchants, getItemFlags, getLocalizedName, getLore, getLoreComponents, getPersistentDataContainer, getPlaceableKeys, getRepairCost, hasAttributeModifiers, hasConflictingEnchant, hasCustomModelData, hasDamage, hasDestroyableKeys, hasDisplayName, hasEnchant, hasEnchants, hasItemFlag, hasLocalizedName, hasLore, hasPlaceableKeys, hasRepairCost, isUnbreakable, lore, lore, removeAttributeModifier, removeAttributeModifier, removeAttributeModifier, removeEnchant, removeItemFlags, serialize, setAttributeModifiers, setCanDestroy, setCanPlaceOn, setCustomModelData, setDamage, setDestroyableKeys, setDisplayName, setDisplayNameComponent, setLocalizedName, setLore, setLoreComponents, setPlaceableKeys, setRepairCost, setUnbreakable, setVersionMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.bukkit.configuration.serialization.ConfigurationSerializable
serializeMethods inherited from interface org.bukkit.inventory.meta.ItemMeta
addAttributeModifier, addEnchant, addItemFlags, displayName, displayName, getAsString, getAttributeModifiers, getAttributeModifiers, getAttributeModifiers, getCanDestroy, getCanPlaceOn, getCustomModelData, getCustomTagContainer, getDestroyableKeys, getDisplayName, getDisplayNameComponent, getEnchantLevel, getEnchants, getItemFlags, getLocalizedName, getLore, getLoreComponents, getPlaceableKeys, hasAttributeModifiers, hasConflictingEnchant, hasCustomModelData, hasDestroyableKeys, hasDisplayName, hasEnchant, hasEnchants, hasItemFlag, hasLocalizedName, hasLore, hasPlaceableKeys, isUnbreakable, lore, lore, removeAttributeModifier, removeAttributeModifier, removeAttributeModifier, removeEnchant, removeItemFlags, setAttributeModifiers, setCanDestroy, setCanPlaceOn, setCustomModelData, setDestroyableKeys, setDisplayName, setDisplayNameComponent, setLocalizedName, setLore, setLoreComponents, setPlaceableKeys, setUnbreakable, setVersionMethods inherited from interface org.bukkit.persistence.PersistentDataHolder
getPersistentDataContainer
-
Constructor Details
-
PotionMetaMock
public PotionMetaMock() -
PotionMetaMock
-
-
Method Details
-
hashCode
public int hashCode()- Overrides:
hashCodein classItemMetaMock
-
equals
- Overrides:
equalsin classItemMetaMock
-
clone
- Specified by:
clonein interfaceDamageable- Specified by:
clonein interfaceItemMeta- Specified by:
clonein interfacePotionMeta- Specified by:
clonein interfaceRepairable- Overrides:
clonein classItemMetaMock
-
addCustomEffect
- Specified by:
addCustomEffectin interfacePotionMeta
-
clearCustomEffects
public boolean clearCustomEffects()- Specified by:
clearCustomEffectsin interfacePotionMeta
-
getCustomEffects
- Specified by:
getCustomEffectsin interfacePotionMeta
-
hasCustomEffect
- Specified by:
hasCustomEffectin interfacePotionMeta
-
hasCustomEffects
public boolean hasCustomEffects()- Specified by:
hasCustomEffectsin interfacePotionMeta
-
removeCustomEffect
- Specified by:
removeCustomEffectin interfacePotionMeta
-
hasColor
public boolean hasColor()- Specified by:
hasColorin interfacePotionMeta
-
getColor
- Specified by:
getColorin interfacePotionMeta
-
setColor
- Specified by:
setColorin interfacePotionMeta
-
setBasePotionData
- Specified by:
setBasePotionDatain interfacePotionMeta
-
getBasePotionData
- Specified by:
getBasePotionDatain interfacePotionMeta
-
setMainEffect
- Specified by:
setMainEffectin interfacePotionMeta
-