Class NullProvider
java.lang.Object
org.skriptlang.skript.bukkit.potion.providers.PotionEffectProvider<Object>
org.skriptlang.skript.bukkit.potion.providers.NullProvider
-
Nested Class Summary
Nested classes/interfaces inherited from class PotionEffectProvider
PotionEffectProvider.RetrievalState -
Field Summary
Fields inherited from class PotionEffectProvider
source -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(org.bukkit.potion.PotionEffect potionEffect) Adds a potion effect to this provider.voidclear(org.bukkit.potion.PotionEffectType[] potionEffectTypes, PotionEffectProvider.RetrievalState state) Clears all potion effects ofpotionEffectTypesfrom this provider.voidClears all potion effects from this provider.get(org.bukkit.potion.PotionEffectType[] potionEffectTypes, PotionEffectProvider.RetrievalState state) Obtains specific types of potion effects from this provider.Obtains all potion effects from this provider.voidmirrorEffectChanges(SkriptPotionEffect potionEffect, Runnable runnable) Used for mirroring modifications of a potion effect actively applied to this provider.voidremove(SkriptPotionEffect potionEffect, PotionEffectProvider.RetrievalState state) Removes a potion effect from this provider.voidremoveAll(org.bukkit.potion.PotionEffectType potionEffectType, PotionEffectProvider.RetrievalState state) Removes all potion effects of a specific type from this provider.Methods inherited from class PotionEffectProvider
modify, of
-
Constructor Details
-
NullProvider
public NullProvider()
-
-
Method Details
-
get
public Collection<SkriptPotionEffect> get(org.bukkit.potion.PotionEffectType[] potionEffectTypes, PotionEffectProvider.RetrievalState state) Description copied from class:PotionEffectProviderObtains specific types of potion effects from this provider.- Specified by:
getin classPotionEffectProvider<Object>- Parameters:
potionEffectTypes- The type of potion effects to obtain.state- The type of retrieval to perform.- Returns:
- All potion effects of
potionEffectTypespresent on this provider.
-
getAll
Description copied from class:PotionEffectProviderObtains all potion effects from this provider.- Specified by:
getAllin classPotionEffectProvider<Object>- Parameters:
state- The type of retrieval to perform.- Returns:
- All potion effects present on this provider.
-
add
public void add(org.bukkit.potion.PotionEffect potionEffect) Description copied from class:PotionEffectProviderAdds a potion effect to this provider.- Specified by:
addin classPotionEffectProvider<Object>- Parameters:
potionEffect- The potion effect to add.
-
remove
Description copied from class:PotionEffectProviderRemoves a potion effect from this provider. A potion effect only needs to match the qualities ofpotionEffectto be removed. Thus, an effect will be removed even if it has other, distinguishing qualities.- Specified by:
removein classPotionEffectProvider<Object>- Parameters:
potionEffect- The potion effect to remove.state- State determining whether certain types of potion effects should be ignored.
-
removeAll
public void removeAll(org.bukkit.potion.PotionEffectType potionEffectType, PotionEffectProvider.RetrievalState state) Description copied from class:PotionEffectProviderRemoves all potion effects of a specific type from this provider.- Specified by:
removeAllin classPotionEffectProvider<Object>- Parameters:
potionEffectType- The type of potion effect to remove.state- State determining whether certain types of potion effects should be preserved.
-
clear
public void clear(org.bukkit.potion.PotionEffectType[] potionEffectTypes, PotionEffectProvider.RetrievalState state) Description copied from class:PotionEffectProviderClears all potion effects ofpotionEffectTypesfrom this provider.- Specified by:
clearin classPotionEffectProvider<Object>- Parameters:
potionEffectTypes- The types of potion effects to clear.state- State determining whether certain types of potion effects should be ignored.
-
clearAll
Description copied from class:PotionEffectProviderClears all potion effects from this provider.- Specified by:
clearAllin classPotionEffectProvider<Object>- Parameters:
state- State determining whether certain types of potion effects should be preserved.
-
mirrorEffectChanges
Description copied from class:PotionEffectProviderUsed for mirroring modifications of a potion effect actively applied to this provider.- Specified by:
mirrorEffectChangesin classPotionEffectProvider<Object>- Parameters:
potionEffect- The potion effect being modified.runnable- A runnable that applies the modification(s) topotionEffectwhen invoked.
-