Package gg.xp.xivdata.data
Record Class ActionInfo
java.lang.Object
java.lang.Record
gg.xp.xivdata.data.ActionInfo
-
Constructor Summary
ConstructorDescriptionActionInfo
(long actionid, String name, long iconId, long cdRaw, int maxCharges, String categoryRaw, boolean isPlayerAbility, long castTimeRaw, int castType, int effectRange, int xAxisModifier, int coneAngle) Creates an instance of aActionInfo
record class. -
Method Summary
Modifier and TypeMethodDescriptionlong
actionid()
Returns the value of theactionid
record component.long
Returns the value of thecastTimeRaw
record component.int
castType()
Returns the value of thecastType
record component.Returns the value of thecategoryRaw
record component.long
cdRaw()
Returns the value of thecdRaw
record component.int
Returns the value of theconeAngle
record component.int
Returns the value of theeffectRange
record component.final boolean
Indicates whether some other object is "equal to" this one.double
double
getCd()
@Nullable ActionIcon
getIcon()
final int
hashCode()
Returns a hash code value for this object.long
iconId()
Returns the value of theiconId
record component.boolean
Returns the value of theisPlayerAbility
record component.int
Returns the value of themaxCharges
record component.name()
Returns the value of thename
record component.final String
toString()
Returns a string representation of this record class.int
Returns the value of thexAxisModifier
record component.
-
Constructor Details
-
ActionInfo
public ActionInfo(long actionid, String name, long iconId, long cdRaw, int maxCharges, String categoryRaw, boolean isPlayerAbility, long castTimeRaw, int castType, int effectRange, int xAxisModifier, int coneAngle) Creates an instance of aActionInfo
record class.- Parameters:
actionid
- the value for theactionid
record componentname
- the value for thename
record componenticonId
- the value for theiconId
record componentcdRaw
- the value for thecdRaw
record componentmaxCharges
- the value for themaxCharges
record componentcategoryRaw
- the value for thecategoryRaw
record componentisPlayerAbility
- the value for theisPlayerAbility
record componentcastTimeRaw
- the value for thecastTimeRaw
record componentcastType
- the value for thecastType
record componenteffectRange
- the value for theeffectRange
record componentxAxisModifier
- the value for thexAxisModifier
record componentconeAngle
- the value for theconeAngle
record component
-
-
Method Details
-
getIcon
-
getXivapiUrl
-
name
Returns the value of thename
record component.- Returns:
- the value of the
name
record component
-
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 theactionid
record component.- Returns:
- the value of the
actionid
record component
-
iconId
public long iconId()Returns the value of theiconId
record component.- Returns:
- the value of the
iconId
record component
-
cdRaw
public long cdRaw()Returns the value of thecdRaw
record component.- Returns:
- the value of the
cdRaw
record component
-
maxCharges
public int maxCharges()Returns the value of themaxCharges
record component.- Returns:
- the value of the
maxCharges
record component
-
categoryRaw
Returns the value of thecategoryRaw
record component.- Returns:
- the value of the
categoryRaw
record component
-
isPlayerAbility
public boolean isPlayerAbility()Returns the value of theisPlayerAbility
record component.- Returns:
- the value of the
isPlayerAbility
record component
-
castTimeRaw
public long castTimeRaw()Returns the value of thecastTimeRaw
record component.- Returns:
- the value of the
castTimeRaw
record component
-
castType
public int castType()Returns the value of thecastType
record component.- Returns:
- the value of the
castType
record component
-
effectRange
public int effectRange()Returns the value of theeffectRange
record component.- Returns:
- the value of the
effectRange
record component
-
xAxisModifier
public int xAxisModifier()Returns the value of thexAxisModifier
record component.- Returns:
- the value of the
xAxisModifier
record component
-
coneAngle
public int coneAngle()Returns the value of theconeAngle
record component.- Returns:
- the value of the
coneAngle
record component
-