Contents
- Description
- Field Summary
- Constructor Summary
- Method Summary
- Field Details
- Constructor Details
- Method Details
- requireBounds(MemorySegment, int)
- getDuration(MemorySegment)
- getDuration(MemorySegment, int)
- getStartTime(MemorySegment)
- getStartTime(MemorySegment, int)
- getContinuous(MemorySegment)
- getContinuous(MemorySegment, int)
- getEaseIn(MemorySegment)
- getEaseIn(MemorySegment, int)
- getEaseOut(MemorySegment)
- getEaseOut(MemorySegment, int)
- getOffset(MemorySegment)
- getOffset(MemorySegment, int)
- getRotation(MemorySegment)
- getRotation(MemorySegment, int)
- toObject(MemorySegment)
- toObject(MemorySegment, int)
- toObject(MemorySegment, int, ReadCursor)
- serialize(MemorySegment, int)
- computeSize()
- clone()
- equals(Object)
- hashCode()
Class CameraShakeConfig
java.lang.Object
com.hypixel.hytale.protocol.CameraShakeConfig
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanfloatstatic final intstatic final intstatic final intfloatstatic final intstatic final int -
Constructor Summary
ConstructorsConstructorDescriptionCameraShakeConfig(float duration, float startTime, boolean continuous, EasingConfig easeIn, EasingConfig easeOut, OffsetNoise offset, RotationNoise rotation) -
Method Summary
Modifier and TypeMethodDescriptionclone()intbooleanstatic booleanstatic booleangetContinuous(MemorySegment mem, int offset) static floatgetDuration(MemorySegment mem) static floatgetDuration(MemorySegment mem, int offset) static EasingConfiggetEaseIn(MemorySegment mem) static EasingConfiggetEaseIn(MemorySegment mem, int offset) static EasingConfiggetEaseOut(MemorySegment mem) static EasingConfiggetEaseOut(MemorySegment mem, int offset) static OffsetNoisegetOffset(MemorySegment mem) static OffsetNoisegetOffset(MemorySegment mem, int offset) static RotationNoisegetRotation(MemorySegment mem) static RotationNoisegetRotation(MemorySegment mem, int offset) static floatstatic floatgetStartTime(MemorySegment mem, int offset) inthashCode()static voidrequireBounds(MemorySegment mem, int offset) Checks that the fixed block fits.intserialize(MemorySegment mem, int offset) static CameraShakeConfigtoObject(MemorySegment mem) static CameraShakeConfigtoObject(MemorySegment mem, int offset) static CameraShakeConfigtoObject(MemorySegment mem, int offset, ReadCursor cursor) Decodes one CameraShakeConfig 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:
-
duration
public float duration -
startTime
public float startTime -
continuous
public boolean continuous -
easeIn
-
easeOut
-
offset
-
rotation
-
-
Constructor Details
-
CameraShakeConfig
public CameraShakeConfig() -
CameraShakeConfig
public CameraShakeConfig(float duration, float startTime, boolean continuous, @Nonnull EasingConfig easeIn, @Nonnull EasingConfig easeOut, @Nonnull OffsetNoise offset, @Nonnull RotationNoise rotation) -
CameraShakeConfig
-
-
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. -
getDuration
-
getDuration
-
getStartTime
-
getStartTime
-
getContinuous
-
getContinuous
-
getEaseIn
-
getEaseIn
-
getEaseOut
-
getEaseOut
-
getOffset
-
getOffset
-
getRotation
-
getRotation
-
toObject
-
toObject
-
toObject
public static CameraShakeConfig toObject(MemorySegment mem, int offset, @Nullable ReadCursor cursor) Decodes one CameraShakeConfig 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
-