Package org.bukkit.inventory.meta
Interface SuspiciousStewMeta
- All Superinterfaces:
- Cloneable,- ConfigurationSerializable,- ItemMeta,- PersistentDataHolder
Represents a suspicious stew that can have custom effects.
- 
Method SummaryModifier and TypeMethodDescriptionbooleanaddCustomEffect(SuspiciousEffectEntry suspiciousEffectEntry, boolean overwrite) Adds a custom potion effect to this suspicious stew.booleanaddCustomEffect(@NotNull PotionEffect effect, boolean overwrite) Deprecated.booleanRemoves all custom potion effects from this suspicious stew.clone()Gets an immutable list containing all custom potion effects applied to this suspicious stew.booleanChecks for a specific custom potion effect type on this suspicious stew.booleanChecks for the presence of custom potion effects.booleanRemoves a custom potion effect from this suspicious stew.Methods inherited from interface org.bukkit.configuration.serialization.ConfigurationSerializableserializeMethods inherited from interface org.bukkit.inventory.meta.ItemMetaaddAttributeModifier, addEnchant, addItemFlags, displayName, displayName, getAsComponentString, getAsString, getAttributeModifiers, getAttributeModifiers, getAttributeModifiers, getCustomModelData, getCustomTagContainer, getDisplayName, getDisplayNameComponent, getEnchantLevel, getEnchantmentGlintOverride, getEnchants, getFood, getItemFlags, getItemName, getLocalizedName, getLore, getLoreComponents, getMaxStackSize, getRarity, getTool, hasAttributeModifiers, hasConflictingEnchant, hasCustomModelData, hasDisplayName, hasEnchant, hasEnchantmentGlintOverride, hasEnchants, hasFood, hasItemFlag, hasItemName, hasLocalizedName, hasLore, hasMaxStackSize, hasRarity, hasTool, isFireResistant, isHideTooltip, isUnbreakable, itemName, itemName, lore, lore, removeAttributeModifier, removeAttributeModifier, removeAttributeModifier, removeEnchant, removeEnchantments, removeItemFlags, setAttributeModifiers, setCustomModelData, setDisplayName, setDisplayNameComponent, setEnchantmentGlintOverride, setFireResistant, setFood, setHideTooltip, setItemName, setLocalizedName, setLore, setLoreComponents, setMaxStackSize, setRarity, setTool, setUnbreakable, setVersionMethods inherited from interface org.bukkit.persistence.PersistentDataHoldergetPersistentDataContainer
- 
Method Details- 
hasCustomEffectsboolean hasCustomEffects()Checks for the presence of custom potion effects.- Returns:
- true if custom potion effects are applied
 
- 
getCustomEffectsGets an immutable list containing all custom potion effects applied to this suspicious stew.Plugins should check that hasCustomEffects() returns true before calling this method. - Returns:
- the immutable list of custom potion effects
 
- 
addCustomEffectDeprecated.useaddCustomEffect(io.papermc.paper.potion.SuspiciousEffectEntry, boolean)as PotionEffect suggests that all attributes are used. In fact, only the PotionEffectType and the duration are used.Adds a custom potion effect to this suspicious stew.- Parameters:
- effect- the potion effect to add
- overwrite- true if any existing effect of the same type should be overwritten
- Returns:
- true if the suspicious stew meta changed as a result of this call
 
- 
addCustomEffectAdds a custom potion effect to this suspicious stew.- Parameters:
- suspiciousEffectEntry- the suspicious effect entry to add
- overwrite- true if any existing effect of the same type should be overwritten
- Returns:
- true if the suspicious stew meta changed as a result of this call as a result of this call
 
- 
removeCustomEffectRemoves a custom potion effect from this suspicious stew.- Parameters:
- type- the potion effect type to remove
- Returns:
- true if the suspicious stew meta changed as a result of this call
 
- 
hasCustomEffectChecks for a specific custom potion effect type on this suspicious stew.- Parameters:
- type- the potion effect type to check for
- Returns:
- true if the suspicious stew has this effect
 
- 
clearCustomEffectsboolean clearCustomEffects()Removes all custom potion effects from this suspicious stew.- Returns:
- true if the suspicious stew meta changed as a result of this call
 
- 
cloneSuspiciousStewMeta clone()
 
- 
addCustomEffect(io.papermc.paper.potion.SuspiciousEffectEntry, boolean)as PotionEffect suggests that all attributes are used.