Class PotionMetaMock
java.lang.Object
be.seeseemelk.mockbukkit.inventory.meta.ItemMetaMock
be.seeseemelk.mockbukkit.inventory.meta.PotionMetaMock
- All Implemented Interfaces:
Cloneable,org.bukkit.configuration.serialization.ConfigurationSerializable,org.bukkit.inventory.meta.Damageable,org.bukkit.inventory.meta.ItemMeta,org.bukkit.inventory.meta.PotionMeta,org.bukkit.inventory.meta.Repairable,org.bukkit.persistence.PersistentDataHolder
This
ItemMetaMock mocks the implementation of SuspiciousStewMeta.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddCustomEffect(@NotNull org.bukkit.potion.PotionEffect effect, boolean overwrite) booleanclone()boolean@NotNull org.bukkit.potion.PotionData@Nullable org.bukkit.ColorgetColor()@NotNull List<org.bukkit.potion.PotionEffect>booleanhasColor()booleanhasCustomEffect(@NotNull org.bukkit.potion.PotionEffectType type) booleaninthashCode()booleanremoveCustomEffect(@NotNull org.bukkit.potion.PotionEffectType type) voidsetBasePotionData(@NotNull org.bukkit.potion.PotionData data) voidsetColor(@Nullable org.bukkit.Color color) booleansetMainEffect(@NotNull org.bukkit.potion.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
public PotionMetaMock(org.bukkit.inventory.meta.PotionMeta meta)
-
-
Method Details
-
hashCode
public int hashCode()- Overrides:
hashCodein classItemMetaMock
-
equals
- Overrides:
equalsin classItemMetaMock
-
clone
- Specified by:
clonein interfaceorg.bukkit.inventory.meta.Damageable- Specified by:
clonein interfaceorg.bukkit.inventory.meta.ItemMeta- Specified by:
clonein interfaceorg.bukkit.inventory.meta.PotionMeta- Specified by:
clonein interfaceorg.bukkit.inventory.meta.Repairable- Overrides:
clonein classItemMetaMock
-
addCustomEffect
public boolean addCustomEffect(@NotNull @NotNull org.bukkit.potion.PotionEffect effect, boolean overwrite) - Specified by:
addCustomEffectin interfaceorg.bukkit.inventory.meta.PotionMeta
-
clearCustomEffects
public boolean clearCustomEffects()- Specified by:
clearCustomEffectsin interfaceorg.bukkit.inventory.meta.PotionMeta
-
getCustomEffects
- Specified by:
getCustomEffectsin interfaceorg.bukkit.inventory.meta.PotionMeta
-
hasCustomEffect
public boolean hasCustomEffect(@NotNull @NotNull org.bukkit.potion.PotionEffectType type) - Specified by:
hasCustomEffectin interfaceorg.bukkit.inventory.meta.PotionMeta
-
hasCustomEffects
public boolean hasCustomEffects()- Specified by:
hasCustomEffectsin interfaceorg.bukkit.inventory.meta.PotionMeta
-
removeCustomEffect
public boolean removeCustomEffect(@NotNull @NotNull org.bukkit.potion.PotionEffectType type) - Specified by:
removeCustomEffectin interfaceorg.bukkit.inventory.meta.PotionMeta
-
hasColor
public boolean hasColor()- Specified by:
hasColorin interfaceorg.bukkit.inventory.meta.PotionMeta
-
getColor
@Nullable public @Nullable org.bukkit.Color getColor()- Specified by:
getColorin interfaceorg.bukkit.inventory.meta.PotionMeta
-
setColor
public void setColor(@Nullable @Nullable org.bukkit.Color color) - Specified by:
setColorin interfaceorg.bukkit.inventory.meta.PotionMeta
-
setBasePotionData
public void setBasePotionData(@NotNull @NotNull org.bukkit.potion.PotionData data) - Specified by:
setBasePotionDatain interfaceorg.bukkit.inventory.meta.PotionMeta
-
getBasePotionData
@NotNull public @NotNull org.bukkit.potion.PotionData getBasePotionData()- Specified by:
getBasePotionDatain interfaceorg.bukkit.inventory.meta.PotionMeta
-
setMainEffect
public boolean setMainEffect(@NotNull @NotNull org.bukkit.potion.PotionEffectType type) - Specified by:
setMainEffectin interfaceorg.bukkit.inventory.meta.PotionMeta
-