Contents
- Description
- Field Summary
- Constructor Summary
- Method Summary
- Field Details
- Constructor Details
- Method Details
- requireBounds(MemorySegment, int)
- getPosition(MemorySegment)
- getPosition(MemorySegment, int)
- getLook(MemorySegment)
- getLook(MemorySegment, int)
- getLookAtPoint(MemorySegment)
- getLookAtPoint(MemorySegment, int)
- getDuration(MemorySegment)
- getDuration(MemorySegment, int)
- getEasing(MemorySegment)
- getEasing(MemorySegment, int)
- getFov(MemorySegment)
- getFov(MemorySegment, int)
- getDepthOfField(MemorySegment)
- getDepthOfField(MemorySegment, int)
- hasPosition(MemorySegment, int)
- hasLook(MemorySegment, int)
- hasLookAtPoint(MemorySegment, int)
- hasFov(MemorySegment, int)
- hasDepthOfField(MemorySegment, int)
- toObject(MemorySegment)
- toObject(MemorySegment, int)
- toObject(MemorySegment, int, ReadCursor)
- serialize(MemorySegment, int)
- computeSize()
- clone()
- equals(Object)
- hashCode()
Class CameraKeyframe
java.lang.Object
com.hypixel.hytale.protocol.CameraKeyframe
-
Field Summary
FieldsModifier and TypeFieldDescriptionfloatstatic final intstatic final intstatic final intstatic final intstatic final int -
Constructor Summary
ConstructorsConstructorDescriptionCameraKeyframe(CameraKeyframe other) CameraKeyframe(Position position, Direction look, Position lookAtPoint, float duration, EasingType easing, Float fov, DepthOfFieldSettings depthOfField) -
Method Summary
Modifier and TypeMethodDescriptionclone()intbooleanstatic DepthOfFieldSettingsstatic DepthOfFieldSettingsgetDepthOfField(MemorySegment mem, int offset) static floatgetDuration(MemorySegment mem) static floatgetDuration(MemorySegment mem, int offset) static EasingTypegetEasing(MemorySegment mem) static EasingTypegetEasing(MemorySegment mem, int offset) static FloatgetFov(MemorySegment mem) static FloatgetFov(MemorySegment mem, int offset) static DirectiongetLook(MemorySegment mem) static DirectiongetLook(MemorySegment mem, int offset) static Positionstatic PositiongetLookAtPoint(MemorySegment mem, int offset) static PositiongetPosition(MemorySegment mem) static PositiongetPosition(MemorySegment mem, int offset) static booleanhasDepthOfField(MemorySegment mem, int offset) static booleanhasFov(MemorySegment mem, int offset) inthashCode()static booleanhasLook(MemorySegment mem, int offset) static booleanhasLookAtPoint(MemorySegment mem, int offset) static booleanhasPosition(MemorySegment mem, int offset) static voidrequireBounds(MemorySegment mem, int offset) Checks that the fixed block fits.intserialize(MemorySegment mem, int offset) static CameraKeyframetoObject(MemorySegment mem) static CameraKeyframetoObject(MemorySegment mem, int offset) static CameraKeyframetoObject(MemorySegment mem, int offset, ReadCursor cursor) Decodes one CameraKeyframe 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:
-
position
-
look
-
lookAtPoint
-
duration
public float duration -
easing
-
fov
-
depthOfField
-
-
Constructor Details
-
CameraKeyframe
public CameraKeyframe() -
CameraKeyframe
public CameraKeyframe(@Nullable Position position, @Nullable Direction look, @Nullable Position lookAtPoint, float duration, @Nonnull EasingType easing, @Nullable Float fov, @Nullable DepthOfFieldSettings depthOfField) -
CameraKeyframe
-
-
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. -
getPosition
-
getPosition
-
getLook
-
getLook
-
getLookAtPoint
-
getLookAtPoint
-
getDuration
-
getDuration
-
getEasing
-
getEasing
-
getFov
-
getFov
-
getDepthOfField
-
getDepthOfField
-
hasPosition
-
hasLook
-
hasLookAtPoint
-
hasFov
-
hasDepthOfField
-
toObject
-
toObject
-
toObject
Decodes one CameraKeyframe 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
-