Package gg.xp.xivdata.data
Record Class StatusEffectInfo
java.lang.Object
java.lang.Record
gg.xp.xivdata.data.StatusEffectInfo
-
Constructor Summary
ConstructorDescriptionStatusEffectInfo
(long statusEffectId, long baseIconId, long maxStacks, String name, String description, boolean canDispel, boolean isPermanent, int partyListPriority, boolean isFcBuff) Creates an instance of aStatusEffectInfo
record class. -
Method Summary
Modifier and TypeMethodDescriptionlong
Returns the value of thebaseIconId
record component.boolean
Returns the value of thecanDispel
record component.Returns the value of thedescription
record component.final boolean
Indicates whether some other object is "equal to" this one.@Nullable StatusEffectIcon
getIcon
(long stacks) final int
hashCode()
Returns a hash code value for this object.long
iconIdForStackCount
(long stacks) boolean
isFcBuff()
Returns the value of theisFcBuff
record component.boolean
Returns the value of theisPermanent
record component.long
Returns the value of themaxStacks
record component.name()
Returns the value of thename
record component.int
Returns the value of thepartyListPriority
record component.long
Returns the value of thestatusEffectId
record component.final String
toString()
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 aStatusEffectInfo
record class.- Parameters:
statusEffectId
- the value for thestatusEffectId
record componentbaseIconId
- the value for thebaseIconId
record componentmaxStacks
- the value for themaxStacks
record componentname
- the value for thename
record componentdescription
- the value for thedescription
record componentcanDispel
- the value for thecanDispel
record componentisPermanent
- the value for theisPermanent
record componentpartyListPriority
- the value for thepartyListPriority
record componentisFcBuff
- the value for theisFcBuff
record component
-
-
Method Details
-
name
Returns the value of thename
record component.- Returns:
- the value of the
name
record component
-
description
Returns the value of thedescription
record component.- Returns:
- the value of the
description
record component
-
getAllIconIds
-
iconIdForStackCount
public long iconIdForStackCount(long stacks) -
getIcon
-
getAllIcons
-
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 thestatusEffectId
record component.- Returns:
- the value of the
statusEffectId
record component
-
baseIconId
public long baseIconId()Returns the value of thebaseIconId
record component.- Returns:
- the value of the
baseIconId
record component
-
maxStacks
public long maxStacks()Returns the value of themaxStacks
record component.- Returns:
- the value of the
maxStacks
record component
-
canDispel
public boolean canDispel()Returns the value of thecanDispel
record component.- Returns:
- the value of the
canDispel
record component
-
isPermanent
public boolean isPermanent()Returns the value of theisPermanent
record component.- Returns:
- the value of the
isPermanent
record component
-
partyListPriority
public int partyListPriority()Returns the value of thepartyListPriority
record component.- Returns:
- the value of the
partyListPriority
record component
-
isFcBuff
public boolean isFcBuff()Returns the value of theisFcBuff
record component.- Returns:
- the value of the
isFcBuff
record component
-