Contents
- Description
- Field Summary
- Constructor Summary
- Method Summary
- Field Details
- Constructor Details
- Method Details
- requireBounds(MemorySegment, int)
- getName(MemorySegment)
- getName(MemorySegment, int)
- getSpeed(MemorySegment)
- getSpeed(MemorySegment, int)
- getBlendingDuration(MemorySegment)
- getBlendingDuration(MemorySegment, int)
- getLooping(MemorySegment)
- getLooping(MemorySegment, int)
- getWeight(MemorySegment)
- getWeight(MemorySegment, int)
- getFootstepIntervals(MemorySegment)
- getFootstepIntervals(MemorySegment, int)
- getSoundEventIndex(MemorySegment)
- getSoundEventIndex(MemorySegment, int)
- getPassiveLoopCount(MemorySegment)
- getPassiveLoopCount(MemorySegment, int)
- hasName(MemorySegment, int)
- toObject(MemorySegment)
- toObject(MemorySegment, int)
- toObject(MemorySegment, int, ReadCursor)
- serialize(MemorySegment, int)
- computeSize()
- clone()
- equals(Object)
- hashCode()
Class Animation
java.lang.Object
com.hypixel.hytale.protocol.Animation
-
Field Summary
FieldsModifier and TypeFieldDescriptionfloatstatic final intint[]booleanstatic final intstatic final intintintfloatstatic final intstatic final intfloat -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()intbooleanstatic floatstatic floatgetBlendingDuration(MemorySegment mem, int offset) static int[]static int[]getFootstepIntervals(MemorySegment mem, int offset) static booleangetLooping(MemorySegment mem) static booleangetLooping(MemorySegment mem, int offset) static StringgetName(MemorySegment mem) static StringgetName(MemorySegment mem, int offset) static intstatic intgetPassiveLoopCount(MemorySegment mem, int offset) static intstatic intgetSoundEventIndex(MemorySegment mem, int offset) static floatgetSpeed(MemorySegment mem) static floatgetSpeed(MemorySegment mem, int offset) static floatgetWeight(MemorySegment mem) static floatgetWeight(MemorySegment mem, int offset) inthashCode()static booleanhasName(MemorySegment mem, int offset) static voidrequireBounds(MemorySegment mem, int offset) Checks that the fixed block fits.intserialize(MemorySegment mem, int offset) static AnimationtoObject(MemorySegment mem) static AnimationtoObject(MemorySegment mem, int offset) static AnimationtoObject(MemorySegment mem, int offset, ReadCursor cursor) Decodes one Animation and reports the end of its encoding through the cursor.
-
Field Details
-
NULLABLE_BIT_FIELD_SIZE
public static final int NULLABLE_BIT_FIELD_SIZE- See Also:
-
FIXED_BLOCK_SIZE
public static final int FIXED_BLOCK_SIZE- See Also:
-
VARIABLE_FIELD_COUNT
public static final int VARIABLE_FIELD_COUNT- See Also:
-
VARIABLE_BLOCK_START
public static final int VARIABLE_BLOCK_START- See Also:
-
MAX_SIZE
public static final int MAX_SIZE- See Also:
-
name
-
speed
public float speed -
blendingDuration
public float blendingDuration -
looping
public boolean looping -
weight
public float weight -
footstepIntervals
@Nonnull public int[] footstepIntervals -
soundEventIndex
public int soundEventIndex -
passiveLoopCount
public int passiveLoopCount
-
-
Constructor Details
-
Animation
public Animation() -
Animation
public Animation(@Nullable String name, float speed, float blendingDuration, boolean looping, float weight, @Nonnull int[] footstepIntervals, int soundEventIndex, int passiveLoopCount) -
Animation
-
-
Method Details
-
requireBounds
Checks that the fixed block fits. The per-field getters read without their own bound check, so call this once before reading fields out of an untrusted segment. -
getName
-
getName
-
getSpeed
-
getSpeed
-
getBlendingDuration
-
getBlendingDuration
-
getLooping
-
getLooping
-
getWeight
-
getWeight
-
getFootstepIntervals
-
getFootstepIntervals
-
getSoundEventIndex
-
getSoundEventIndex
-
getPassiveLoopCount
-
getPassiveLoopCount
-
hasName
-
toObject
-
toObject
-
toObject
Decodes one Animation and reports the end of its encoding through the cursor. The variable block is decoded in field order against a running position, and each offset slot must name that position, so the fields decoded are the bytes walked. -
serialize
-
computeSize
public int computeSize() -
clone
-
equals
-
hashCode
-