Class CCBaseEffectDescription
java.lang.Object
live.crowdcontrol.cc4j.websocket.payload.CCBaseEffectDescription
- Direct Known Subclasses:
CCEffectDescription
Describes the metadata of an effect.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final booleanprotected final @Nullable Stringprotected final booleanprotected final @Nullable CustomEffectDurationprotected final booleanprotected final @Nullable Stringprotected final booleanprotected final booleanprotected final @NotNull CCNameprotected final @Nullable Stringprotected final boolean -
Constructor Summary
ConstructorsConstructorDescriptionCCBaseEffectDescription(@NotNull CCName name, @Nullable String image, @Nullable String note, @Nullable String description, boolean disabled, boolean isNew, boolean inactive, boolean admin, boolean hidden, boolean unavailable, @Nullable List<String> category, @Nullable List<String> group, @Nullable List<String> tags, @Nullable CustomEffectDuration duration) -
Method Summary
Modifier and TypeMethodDescriptionGets the effect's categories.@Nullable StringGets the description of the effect.@Nullable CustomEffectDurationThe duration of the effect in seconds.longGets the effect's groups.@Nullable StringgetImage()Gets the filename of the image.@NotNull CCNamegetName()Gets the display name of the effect.@Nullable StringgetNote()Gets the note to be displayed next to theeffect name.getTags()Deprecated.booleanWhether the effect is hidden from viewers, only allowing it to be used by streamers.booleanWhether the effect has been temporarily removed by Crowd Control staff due to instability.booleanisHidden()Whether the effect is currently hidden by the game.booleanWhether the effect has been hidden by the streamer.booleanisNew()Whether the effect has been added in a recent update.booleanWhether the effect is currently available for purchase, as dictated by the game.toString()
-
Field Details
-
name
-
image
-
note
-
description
-
disabled
protected final boolean disabled -
isNew
protected final boolean isNew -
inactive
protected final boolean inactive -
admin
protected final boolean admin -
category
-
group
-
tags
-
duration
-
-
Constructor Details
-
CCBaseEffectDescription
public CCBaseEffectDescription(@NotNull @NotNull CCName name, @Nullable @Nullable String image, @Nullable @Nullable String note, @Nullable @Nullable String description, boolean disabled, boolean isNew, boolean inactive, boolean admin, boolean hidden, boolean unavailable, @Nullable @Nullable List<String> category, @Nullable @Nullable List<String> group, @Nullable @Nullable List<String> tags, @Nullable @Nullable CustomEffectDuration duration)
-
-
Method Details
-
getName
Gets the display name of the effect.- Returns:
- display name
- See Also:
-
getImage
Gets the filename of the image. The full image URL is determined using:https://resources.crowdcontrol.live/images/{GAME_ID}/{GAME_PACK_ID}/icons/{EFFECT_IMAGE ?? EFFECT_ID}.png- Returns:
- image filename override
-
getNote
Gets the note to be displayed next to theeffect name.- Returns:
- clarifying note
-
getDescription
Gets the description of the effect. It describes what is expected to happen.- Returns:
- effect description
-
isDisabled
public boolean isDisabled()Whether the effect has been temporarily removed by Crowd Control staff due to instability.- Returns:
- is disabled
-
isNew
public boolean isNew()Whether the effect has been added in a recent update.- Returns:
- is new
-
isInactive
public boolean isInactive()Whether the effect has been hidden by the streamer.- Returns:
- is inactive
-
isAdminOnly
public boolean isAdminOnly()Whether the effect is hidden from viewers, only allowing it to be used by streamers. Typically used for repairing broken game states.- Returns:
- is admin-only
-
isHidden
public boolean isHidden()Whether the effect is currently hidden by the game.- Returns:
- is hidden
-
getCategories
Gets the effect's categories. These are displayed to the viewer and streamer and used to narrow down their list of visible effects.- Returns:
- groups
-
getGroups
Gets the effect's groups. Groups are used to connect effects together so the pack can change multiple effects at once. This is used for hiding effects or making multiple effects unavailable at once.- Returns:
- groups
-
getTags
Deprecated.Unused.- Returns:
- tags
-
getDuration
The duration of the effect in seconds.nullif non-timed.- Returns:
- duration obj
-
getDurationMillis
public long getDurationMillis() -
toString
-