Package de.eimmer.inventar.meta
Interface VerdaechtigeSuppeMeta
- All Superinterfaces:
BestaendigeDatenInhaber
,Cloneable
,GegenstandMeta
,KonfigurationsSerialisierbar
Represents a suspicious stew that can have custom effects.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
addCustomEffect
(ZaubertrankEffekt effect, boolean overwrite) Adds a custom zaubertrank effect to this suspicious stew.boolean
Removes all custom zaubertrank effects from this suspicious stew.clone()
Gets an immutable list containing all custom zaubertrank effects applied to this suspicious stew.boolean
Checks for a specific custom zaubertrank effect type on this suspicious stew.boolean
Checks for the presence of custom zaubertrank effects.boolean
Removes a custom zaubertrank effect from this suspicious stew.Methods inherited from interface de.eimmer.bestaendigkeit.BestaendigeDatenInhaber
getPersistentDataContainer
Methods inherited from interface de.eimmer.inventar.meta.GegenstandMeta
addAttributeModifier, addEnchant, addItemFlags, getAsString, 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, setVersion
Methods inherited from interface de.eimmer.konfiguration.serialisierung.KonfigurationsSerialisierbar
serialize
-
Method Details
-
hasCustomEffects
boolean hasCustomEffects()Checks for the presence of custom zaubertrank effects.- Returns:
- true if custom zaubertrank effects are applied
-
getCustomEffects
Gets an immutable list containing all custom zaubertrank effects applied to this suspicious stew.Plugins should check that hasCustomEffects() returns true before calling this method.
- Returns:
- the immutable list of custom zaubertrank effects
-
addCustomEffect
Adds a custom zaubertrank effect to this suspicious stew.- Parameters:
effect
- the zaubertrank effect to addoverwrite
- 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
-
removeCustomEffect
Removes a custom zaubertrank effect from this suspicious stew.- Parameters:
type
- the zaubertrank effect type to remove- Returns:
- true if the suspicious stew meta changed as a result of this call
-
hasCustomEffect
Checks for a specific custom zaubertrank effect type on this suspicious stew.- Parameters:
type
- the zaubertrank effect type to check for- Returns:
- true if the suspicious stew has this effect
-
clearCustomEffects
boolean clearCustomEffects()Removes all custom zaubertrank effects from this suspicious stew.- Returns:
- true if the suspicious stew meta changed as a result of this call
-
clone
VerdaechtigeSuppeMeta clone()- Specified by:
clone
in interfaceGegenstandMeta
-