Contents
- Description
- Field Summary
- Constructor Summary
- Method Summary
- Field Details
- Constructor Details
- Method Details
- requireBounds(MemorySegment, int)
- getThirdPerson(MemorySegment)
- getThirdPerson(MemorySegment, int)
- getThirdPersonMoving(MemorySegment)
- getThirdPersonMoving(MemorySegment, int)
- getThirdPersonFace(MemorySegment)
- getThirdPersonFace(MemorySegment, int)
- getFirstPerson(MemorySegment)
- getFirstPerson(MemorySegment, int)
- getFirstPersonOverride(MemorySegment)
- getFirstPersonOverride(MemorySegment, int)
- getKeepPreviousFirstPersonAnimation(MemorySegment)
- getKeepPreviousFirstPersonAnimation(MemorySegment, int)
- getSpeed(MemorySegment)
- getSpeed(MemorySegment, int)
- getBlendingDuration(MemorySegment)
- getBlendingDuration(MemorySegment, int)
- getLooping(MemorySegment)
- getLooping(MemorySegment, int)
- getClipsGeometry(MemorySegment)
- getClipsGeometry(MemorySegment, int)
- hasThirdPerson(MemorySegment, int)
- hasThirdPersonMoving(MemorySegment, int)
- hasThirdPersonFace(MemorySegment, int)
- hasFirstPerson(MemorySegment, int)
- hasFirstPersonOverride(MemorySegment, int)
- toObject(MemorySegment)
- toObject(MemorySegment, int)
- toObject(MemorySegment, int, ReadCursor)
- serialize(MemorySegment, int)
- computeSize()
- clone()
- equals(Object)
- hashCode()
Class ItemAnimation
java.lang.Object
com.hypixel.hytale.protocol.ItemAnimation
-
Field Summary
FieldsModifier and TypeFieldDescriptionfloatbooleanstatic final intbooleanbooleanstatic final intstatic final intfloatstatic final intstatic final int -
Constructor Summary
ConstructorsConstructorDescriptionItemAnimation(ItemAnimation other) ItemAnimation(String thirdPerson, String thirdPersonMoving, String thirdPersonFace, String firstPerson, String firstPersonOverride, boolean keepPreviousFirstPersonAnimation, float speed, float blendingDuration, boolean looping, boolean clipsGeometry) -
Method Summary
Modifier and TypeMethodDescriptionclone()intbooleanstatic floatstatic floatgetBlendingDuration(MemorySegment mem, int offset) static booleanstatic booleangetClipsGeometry(MemorySegment mem, int offset) static Stringstatic StringgetFirstPerson(MemorySegment mem, int offset) static Stringstatic StringgetFirstPersonOverride(MemorySegment mem, int offset) static booleanstatic booleangetKeepPreviousFirstPersonAnimation(MemorySegment mem, int offset) static booleangetLooping(MemorySegment mem) static booleangetLooping(MemorySegment mem, int offset) static floatgetSpeed(MemorySegment mem) static floatgetSpeed(MemorySegment mem, int offset) static Stringstatic StringgetThirdPerson(MemorySegment mem, int offset) static Stringstatic StringgetThirdPersonFace(MemorySegment mem, int offset) static Stringstatic StringgetThirdPersonMoving(MemorySegment mem, int offset) static booleanhasFirstPerson(MemorySegment mem, int offset) static booleanhasFirstPersonOverride(MemorySegment mem, int offset) inthashCode()static booleanhasThirdPerson(MemorySegment mem, int offset) static booleanhasThirdPersonFace(MemorySegment mem, int offset) static booleanhasThirdPersonMoving(MemorySegment mem, int offset) static voidrequireBounds(MemorySegment mem, int offset) Checks that the fixed block fits.intserialize(MemorySegment mem, int offset) static ItemAnimationtoObject(MemorySegment mem) static ItemAnimationtoObject(MemorySegment mem, int offset) static ItemAnimationtoObject(MemorySegment mem, int offset, ReadCursor cursor) Decodes one ItemAnimation 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:
-
thirdPerson
-
thirdPersonMoving
-
thirdPersonFace
-
firstPerson
-
firstPersonOverride
-
keepPreviousFirstPersonAnimation
public boolean keepPreviousFirstPersonAnimation -
speed
public float speed -
blendingDuration
public float blendingDuration -
looping
public boolean looping -
clipsGeometry
public boolean clipsGeometry
-
-
Constructor Details
-
ItemAnimation
public ItemAnimation() -
ItemAnimation
public ItemAnimation(@Nullable String thirdPerson, @Nullable String thirdPersonMoving, @Nullable String thirdPersonFace, @Nullable String firstPerson, @Nullable String firstPersonOverride, boolean keepPreviousFirstPersonAnimation, float speed, float blendingDuration, boolean looping, boolean clipsGeometry) -
ItemAnimation
-
-
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. -
getThirdPerson
-
getThirdPerson
-
getThirdPersonMoving
-
getThirdPersonMoving
-
getThirdPersonFace
-
getThirdPersonFace
-
getFirstPerson
-
getFirstPerson
-
getFirstPersonOverride
-
getFirstPersonOverride
-
getKeepPreviousFirstPersonAnimation
-
getKeepPreviousFirstPersonAnimation
-
getSpeed
-
getSpeed
-
getBlendingDuration
-
getBlendingDuration
-
getLooping
-
getLooping
-
getClipsGeometry
-
getClipsGeometry
-
hasThirdPerson
-
hasThirdPersonMoving
-
hasThirdPersonFace
-
hasFirstPerson
-
hasFirstPersonOverride
-
toObject
-
toObject
-
toObject
Decodes one ItemAnimation 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
-