Package gg.xp.xivdata.data
Record Class StatusEffectInfo
java.lang.Object
java.lang.Record
gg.xp.xivdata.data.StatusEffectInfo
- All Implemented Interfaces:
Serializable
public record StatusEffectInfo(long statusEffectId, long baseIconId, long maxStacks, String name, String description, boolean canDispel, boolean isPermanent, int partyListPriority, boolean isFcBuff)
extends Record
implements Serializable
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionStatusEffectInfo(long statusEffectId, long baseIconId, long maxStacks, String name, String description, boolean canDispel, boolean isPermanent, int partyListPriority, boolean isFcBuff) Creates an instance of aStatusEffectInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of thebaseIconIdrecord component.booleanReturns the value of thecanDispelrecord component.Returns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.@Nullable StatusEffectIcongetIcon(long stacks) final inthashCode()Returns a hash code value for this object.longiconIdForStackCount(long stacks) booleanisFcBuff()Returns the value of theisFcBuffrecord component.booleanReturns the value of theisPermanentrecord component.booleanlongReturns the value of themaxStacksrecord component.name()Returns the value of thenamerecord component.intReturns the value of thepartyListPriorityrecord component.longReturns the value of thestatusEffectIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
StatusEffectInfo
public StatusEffectInfo(long statusEffectId, long baseIconId, long maxStacks, String name, String description, boolean canDispel, boolean isPermanent, int partyListPriority, boolean isFcBuff) Creates an instance of aStatusEffectInforecord class.- Parameters:
statusEffectId- the value for thestatusEffectIdrecord componentbaseIconId- the value for thebaseIconIdrecord componentmaxStacks- the value for themaxStacksrecord componentname- the value for thenamerecord componentdescription- the value for thedescriptionrecord componentcanDispel- the value for thecanDispelrecord componentisPermanent- the value for theisPermanentrecord componentpartyListPriority- the value for thepartyListPriorityrecord componentisFcBuff- the value for theisFcBuffrecord component
-
-
Method Details
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
getAllIconIds
-
iconIdForStackCount
public long iconIdForStackCount(long stacks) -
getIcon
-
getAllIcons
-
isUseless
public boolean isUseless() -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
statusEffectId
public long statusEffectId()Returns the value of thestatusEffectIdrecord component.- Returns:
- the value of the
statusEffectIdrecord component
-
baseIconId
public long baseIconId()Returns the value of thebaseIconIdrecord component.- Returns:
- the value of the
baseIconIdrecord component
-
maxStacks
public long maxStacks()Returns the value of themaxStacksrecord component.- Returns:
- the value of the
maxStacksrecord component
-
canDispel
public boolean canDispel()Returns the value of thecanDispelrecord component.- Returns:
- the value of the
canDispelrecord component
-
isPermanent
public boolean isPermanent()Returns the value of theisPermanentrecord component.- Returns:
- the value of the
isPermanentrecord component
-
partyListPriority
public int partyListPriority()Returns the value of thepartyListPriorityrecord component.- Returns:
- the value of the
partyListPriorityrecord component
-
isFcBuff
public boolean isFcBuff()Returns the value of theisFcBuffrecord component.- Returns:
- the value of the
isFcBuffrecord component
-