Package gg.xp.xivdata.data
Record Class ActionInfo
java.lang.Object
java.lang.Record
gg.xp.xivdata.data.ActionInfo
- All Implemented Interfaces:
Serializable
public record ActionInfo(long actionid, String name, long iconId, long cdRaw, int maxCharges, int categoryRaw, boolean isPlayerAbility, long castTimeRaw, int castType, int effectRange, int xAxisModifier, int coneAngle, boolean isConeAngleKnown, String description)
extends Record
implements Serializable
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionActionInfo(long actionid, String name, long iconId, long cdRaw, int maxCharges, int categoryRaw, boolean isPlayerAbility, long castTimeRaw, int castType, int effectRange, int xAxisModifier, int coneAngle, boolean isConeAngleKnown, String description) Creates an instance of aActionInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongactionid()Returns the value of theactionidrecord component.longReturns the value of thecastTimeRawrecord component.intcastType()Returns the value of thecastTyperecord component.intReturns the value of thecategoryRawrecord component.longcdRaw()Returns the value of thecdRawrecord component.intReturns the value of theconeAnglerecord component.Returns the value of thedescriptionrecord component.intReturns the value of theeffectRangerecord component.final booleanIndicates whether some other object is "equal to" this one.doubledoublegetCd()@Nullable ActionIcongetIcon()final inthashCode()Returns a hash code value for this object.longiconId()Returns the value of theiconIdrecord component.booleanReturns the value of theisConeAngleKnownrecord component.booleanReturns the value of theisPlayerAbilityrecord component.intReturns the value of themaxChargesrecord component.name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of thexAxisModifierrecord component.
-
Constructor Details
-
ActionInfo
public ActionInfo(long actionid, String name, long iconId, long cdRaw, int maxCharges, int categoryRaw, boolean isPlayerAbility, long castTimeRaw, int castType, int effectRange, int xAxisModifier, int coneAngle, boolean isConeAngleKnown, String description) Creates an instance of aActionInforecord class.- Parameters:
actionid- the value for theactionidrecord componentname- the value for thenamerecord componenticonId- the value for theiconIdrecord componentcdRaw- the value for thecdRawrecord componentmaxCharges- the value for themaxChargesrecord componentcategoryRaw- the value for thecategoryRawrecord componentisPlayerAbility- the value for theisPlayerAbilityrecord componentcastTimeRaw- the value for thecastTimeRawrecord componentcastType- the value for thecastTyperecord componenteffectRange- the value for theeffectRangerecord componentxAxisModifier- the value for thexAxisModifierrecord componentconeAngle- the value for theconeAnglerecord componentisConeAngleKnown- the value for theisConeAngleKnownrecord componentdescription- the value for thedescriptionrecord component
-
-
Method Details
-
getIcon
-
getXivapiUrl
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
originalName
-
getCd
public double getCd() -
getCastTime
public double getCastTime() -
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 '=='. -
actionid
public long actionid()Returns the value of theactionidrecord component.- Returns:
- the value of the
actionidrecord component
-
iconId
public long iconId()Returns the value of theiconIdrecord component.- Returns:
- the value of the
iconIdrecord component
-
cdRaw
public long cdRaw()Returns the value of thecdRawrecord component.- Returns:
- the value of the
cdRawrecord component
-
maxCharges
public int maxCharges()Returns the value of themaxChargesrecord component.- Returns:
- the value of the
maxChargesrecord component
-
categoryRaw
public int categoryRaw()Returns the value of thecategoryRawrecord component.- Returns:
- the value of the
categoryRawrecord component
-
isPlayerAbility
public boolean isPlayerAbility()Returns the value of theisPlayerAbilityrecord component.- Returns:
- the value of the
isPlayerAbilityrecord component
-
castTimeRaw
public long castTimeRaw()Returns the value of thecastTimeRawrecord component.- Returns:
- the value of the
castTimeRawrecord component
-
castType
public int castType()Returns the value of thecastTyperecord component.- Returns:
- the value of the
castTyperecord component
-
effectRange
public int effectRange()Returns the value of theeffectRangerecord component.- Returns:
- the value of the
effectRangerecord component
-
xAxisModifier
public int xAxisModifier()Returns the value of thexAxisModifierrecord component.- Returns:
- the value of the
xAxisModifierrecord component
-
coneAngle
public int coneAngle()Returns the value of theconeAnglerecord component.- Returns:
- the value of the
coneAnglerecord component
-
isConeAngleKnown
public boolean isConeAngleKnown()Returns the value of theisConeAngleKnownrecord component.- Returns:
- the value of the
isConeAngleKnownrecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-