Interface PlayerPostEffects
Represents the post-effects that can be applied to a player.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbooleanAdds a post-effect to the player.booleanclear()Clears all post-effects from the player.booleanRemoves a post-effect from the player.booleanset(SequencedCollection<Key> postEffects) Sets the list of post-effects that are currently applied to the player.values()Gets the list of post-effects that are currently applied to the player.
-
Method Details
-
values
@Unmodifiable List<Key> values()Gets the list of post-effects that are currently applied to the player.- Returns:
- an unmodifiable list of post-effects
-
set
Sets the list of post-effects that are currently applied to the player.- Parameters:
postEffects- the list of post-effects to set- Returns:
- true if the post-effects were changed, false if they were the same
-
add
Adds a post-effect to the player.- Parameters:
effect- the key post-effect to add- Returns:
- true if the post-effect was added, false if it was already present
-
remove
Removes a post-effect from the player.- Parameters:
effect- the key post-effect to remove- Returns:
- true if the post-effect was removed, false if it was not present
-
clear
boolean clear()Clears all post-effects from the player.- Returns:
- true if any post-effects were cleared, false if there were none
-