Record Class SequenceType
java.lang.Object
java.lang.Record
com.botwithus.bot.api.model.SequenceType
- Record Components:
id- the sequence type IDframeCount- the total number of framesframeLengths- the duration of each frameloopOffset- the frame offset to loop from, or-1for no loopingpriority- the animation priorityoffHand- the off-hand weapon override, or-1for nonemainHand- the main-hand weapon override, or-1for nonemaxLoops- the maximum number of loops, or0for unlimitedanimatingPrecedence- the precedence when already animatingwalkingPrecedence- the precedence when walkingreplayMode- the replay modetweened- whether the animation uses tweening between framesparams- additional key-value parameters from the sequence definition
public record SequenceType(int id, int frameCount, List<Integer> frameLengths, int loopOffset, int priority, int offHand, int mainHand, int maxLoops, int animatingPrecedence, int walkingPrecedence, int replayMode, boolean tweened, Map<String,Object> params)
extends Record
Animation sequence definition from the game cache.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSequenceType(int id, int frameCount, List<Integer> frameLengths, int loopOffset, int priority, int offHand, int mainHand, int maxLoops, int animatingPrecedence, int walkingPrecedence, int replayMode, boolean tweened, Map<String, Object> params) Creates an instance of aSequenceTyperecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theanimatingPrecedencerecord component.final booleanIndicates whether some other object is "equal to" this one.intReturns the value of theframeCountrecord component.Returns the value of theframeLengthsrecord component.final inthashCode()Returns a hash code value for this object.intid()Returns the value of theidrecord component.intReturns the value of theloopOffsetrecord component.intmainHand()Returns the value of themainHandrecord component.intmaxLoops()Returns the value of themaxLoopsrecord component.intoffHand()Returns the value of theoffHandrecord component.params()Returns the value of theparamsrecord component.intpriority()Returns the value of thepriorityrecord component.intReturns the value of thereplayModerecord component.final StringtoString()Returns a string representation of this record class.booleantweened()Returns the value of thetweenedrecord component.intReturns the value of thewalkingPrecedencerecord component.
-
Constructor Details
-
SequenceType
public SequenceType(int id, int frameCount, List<Integer> frameLengths, int loopOffset, int priority, int offHand, int mainHand, int maxLoops, int animatingPrecedence, int walkingPrecedence, int replayMode, boolean tweened, Map<String, Object> params) Creates an instance of aSequenceTyperecord class.- Parameters:
id- the value for theidrecord componentframeCount- the value for theframeCountrecord componentframeLengths- the value for theframeLengthsrecord componentloopOffset- the value for theloopOffsetrecord componentpriority- the value for thepriorityrecord componentoffHand- the value for theoffHandrecord componentmainHand- the value for themainHandrecord componentmaxLoops- the value for themaxLoopsrecord componentanimatingPrecedence- the value for theanimatingPrecedencerecord componentwalkingPrecedence- the value for thewalkingPrecedencerecord componentreplayMode- the value for thereplayModerecord componenttweened- the value for thetweenedrecord componentparams- the value for theparamsrecord component
-
-
Method Details
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
id
-
frameCount
public int frameCount()Returns the value of theframeCountrecord component.- Returns:
- the value of the
frameCountrecord component
-
frameLengths
Returns the value of theframeLengthsrecord component.- Returns:
- the value of the
frameLengthsrecord component
-
loopOffset
public int loopOffset()Returns the value of theloopOffsetrecord component.- Returns:
- the value of the
loopOffsetrecord component
-
priority
-
offHand
-
mainHand
-
maxLoops
-
animatingPrecedence
public int animatingPrecedence()Returns the value of theanimatingPrecedencerecord component.- Returns:
- the value of the
animatingPrecedencerecord component
-
walkingPrecedence
public int walkingPrecedence()Returns the value of thewalkingPrecedencerecord component.- Returns:
- the value of the
walkingPrecedencerecord component
-
replayMode
public int replayMode()Returns the value of thereplayModerecord component.- Returns:
- the value of the
replayModerecord component
-
tweened
-
params
-