Contents
- Description
- Field Summary
- Constructor Summary
- Method Summary
- Field Details
- NULLABLE_BIT_FIELD_SIZE
- FIXED_BLOCK_SIZE
- VARIABLE_FIELD_COUNT
- VARIABLE_BLOCK_START
- MAX_SIZE
- positionLerpSpeed
- rotationLerpSpeed
- distance
- speedModifier
- allowPitchControls
- displayCursor
- displayReticle
- mouseInputTargetType
- sendMouseMotion
- skipCharacterPhysics
- isFirstPerson
- hideHeldItem
- movementForceRotationType
- movementForceRotation
- attachedToType
- attachedToEntityId
- eyeOffset
- followAttachedEntity
- positionDistanceOffsetType
- positionOffset
- rotationOffset
- positionType
- position
- rotationType
- rotation
- canMoveType
- applyMovementType
- movementMultiplier
- applyLookType
- lookMultiplier
- mouseInputType
- planeNormal
- baseFov
- depthOfField
- Constructor Details
- ServerCameraSettings()
- ServerCameraSettings(float, float, float, float, boolean, boolean, boolean, MouseInputTargetType, boolean, boolean, boolean, boolean, MovementForceRotationType, Direction, AttachedToType, int, boolean, boolean, PositionDistanceOffsetType, Position, Direction, PositionType, Position, RotationType, Direction, CanMoveType, ApplyMovementType, Vector3fc, ApplyLookType, Vector2fc, MouseInputType, Vector3fc, Float, DepthOfFieldSettings)
- ServerCameraSettings(ServerCameraSettings)
- Method Details
- requireBounds(MemorySegment, int)
- getPositionLerpSpeed(MemorySegment)
- getPositionLerpSpeed(MemorySegment, int)
- getRotationLerpSpeed(MemorySegment)
- getRotationLerpSpeed(MemorySegment, int)
- getDistance(MemorySegment)
- getDistance(MemorySegment, int)
- getSpeedModifier(MemorySegment)
- getSpeedModifier(MemorySegment, int)
- getAllowPitchControls(MemorySegment)
- getAllowPitchControls(MemorySegment, int)
- getDisplayCursor(MemorySegment)
- getDisplayCursor(MemorySegment, int)
- getDisplayReticle(MemorySegment)
- getDisplayReticle(MemorySegment, int)
- getMouseInputTargetType(MemorySegment)
- getMouseInputTargetType(MemorySegment, int)
- getSendMouseMotion(MemorySegment)
- getSendMouseMotion(MemorySegment, int)
- getSkipCharacterPhysics(MemorySegment)
- getSkipCharacterPhysics(MemorySegment, int)
- getIsFirstPerson(MemorySegment)
- getIsFirstPerson(MemorySegment, int)
- getHideHeldItem(MemorySegment)
- getHideHeldItem(MemorySegment, int)
- getMovementForceRotationType(MemorySegment)
- getMovementForceRotationType(MemorySegment, int)
- getMovementForceRotation(MemorySegment)
- getMovementForceRotation(MemorySegment, int)
- getAttachedToType(MemorySegment)
- getAttachedToType(MemorySegment, int)
- getAttachedToEntityId(MemorySegment)
- getAttachedToEntityId(MemorySegment, int)
- getEyeOffset(MemorySegment)
- getEyeOffset(MemorySegment, int)
- getFollowAttachedEntity(MemorySegment)
- getFollowAttachedEntity(MemorySegment, int)
- getPositionDistanceOffsetType(MemorySegment)
- getPositionDistanceOffsetType(MemorySegment, int)
- getPositionOffset(MemorySegment)
- getPositionOffset(MemorySegment, int)
- getRotationOffset(MemorySegment)
- getRotationOffset(MemorySegment, int)
- getPositionType(MemorySegment)
- getPositionType(MemorySegment, int)
- getPosition(MemorySegment)
- getPosition(MemorySegment, int)
- getRotationType(MemorySegment)
- getRotationType(MemorySegment, int)
- getRotation(MemorySegment)
- getRotation(MemorySegment, int)
- getCanMoveType(MemorySegment)
- getCanMoveType(MemorySegment, int)
- getApplyMovementType(MemorySegment)
- getApplyMovementType(MemorySegment, int)
- getMovementMultiplier(MemorySegment)
- getMovementMultiplier(MemorySegment, int)
- getApplyLookType(MemorySegment)
- getApplyLookType(MemorySegment, int)
- getLookMultiplier(MemorySegment)
- getLookMultiplier(MemorySegment, int)
- getMouseInputType(MemorySegment)
- getMouseInputType(MemorySegment, int)
- getPlaneNormal(MemorySegment)
- getPlaneNormal(MemorySegment, int)
- getBaseFov(MemorySegment)
- getBaseFov(MemorySegment, int)
- getDepthOfField(MemorySegment)
- getDepthOfField(MemorySegment, int)
- hasMovementForceRotation(MemorySegment, int)
- hasPositionOffset(MemorySegment, int)
- hasRotationOffset(MemorySegment, int)
- hasPosition(MemorySegment, int)
- hasRotation(MemorySegment, int)
- hasMovementMultiplier(MemorySegment, int)
- hasLookMultiplier(MemorySegment, int)
- hasPlaneNormal(MemorySegment, int)
- hasBaseFov(MemorySegment, int)
- hasDepthOfField(MemorySegment, int)
- toObject(MemorySegment)
- toObject(MemorySegment, int)
- toObject(MemorySegment, int, ReadCursor)
- serialize(MemorySegment, int)
- computeSize()
- clone()
- equals(Object)
- hashCode()
Class ServerCameraSettings
java.lang.Object
com.hypixel.hytale.protocol.ServerCameraSettings
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanintbooleanbooleanfloatbooleanstatic final intbooleanbooleanbooleanorg.joml.Vector2fcstatic final intorg.joml.Vector3fcstatic final intorg.joml.Vector3fcfloatfloatbooleanbooleanfloatstatic final intstatic final int -
Constructor Summary
ConstructorsConstructorDescriptionServerCameraSettings(float positionLerpSpeed, float rotationLerpSpeed, float distance, float speedModifier, boolean allowPitchControls, boolean displayCursor, boolean displayReticle, MouseInputTargetType mouseInputTargetType, boolean sendMouseMotion, boolean skipCharacterPhysics, boolean isFirstPerson, boolean hideHeldItem, MovementForceRotationType movementForceRotationType, Direction movementForceRotation, AttachedToType attachedToType, int attachedToEntityId, boolean eyeOffset, boolean followAttachedEntity, PositionDistanceOffsetType positionDistanceOffsetType, Position positionOffset, Direction rotationOffset, PositionType positionType, Position position, RotationType rotationType, Direction rotation, CanMoveType canMoveType, ApplyMovementType applyMovementType, org.joml.Vector3fc movementMultiplier, ApplyLookType applyLookType, org.joml.Vector2fc lookMultiplier, MouseInputType mouseInputType, org.joml.Vector3fc planeNormal, Float baseFov, DepthOfFieldSettings depthOfField) -
Method Summary
Modifier and TypeMethodDescriptionclone()intbooleanstatic booleanstatic booleangetAllowPitchControls(MemorySegment mem, int offset) static ApplyLookTypestatic ApplyLookTypegetApplyLookType(MemorySegment mem, int offset) static ApplyMovementTypestatic ApplyMovementTypegetApplyMovementType(MemorySegment mem, int offset) static intstatic intgetAttachedToEntityId(MemorySegment mem, int offset) static AttachedToTypestatic AttachedToTypegetAttachedToType(MemorySegment mem, int offset) static FloatgetBaseFov(MemorySegment mem) static FloatgetBaseFov(MemorySegment mem, int offset) static CanMoveTypestatic CanMoveTypegetCanMoveType(MemorySegment mem, int offset) static DepthOfFieldSettingsstatic DepthOfFieldSettingsgetDepthOfField(MemorySegment mem, int offset) static booleanstatic booleangetDisplayCursor(MemorySegment mem, int offset) static booleanstatic booleangetDisplayReticle(MemorySegment mem, int offset) static floatgetDistance(MemorySegment mem) static floatgetDistance(MemorySegment mem, int offset) static booleanstatic booleangetEyeOffset(MemorySegment mem, int offset) static booleanstatic booleangetFollowAttachedEntity(MemorySegment mem, int offset) static booleanstatic booleangetHideHeldItem(MemorySegment mem, int offset) static booleanstatic booleangetIsFirstPerson(MemorySegment mem, int offset) static org.joml.Vector2fcstatic org.joml.Vector2fcgetLookMultiplier(MemorySegment mem, int offset) static MouseInputTargetTypestatic MouseInputTargetTypegetMouseInputTargetType(MemorySegment mem, int offset) static MouseInputTypestatic MouseInputTypegetMouseInputType(MemorySegment mem, int offset) static Directionstatic DirectiongetMovementForceRotation(MemorySegment mem, int offset) static MovementForceRotationTypestatic MovementForceRotationTypegetMovementForceRotationType(MemorySegment mem, int offset) static org.joml.Vector3fcstatic org.joml.Vector3fcgetMovementMultiplier(MemorySegment mem, int offset) static org.joml.Vector3fcstatic org.joml.Vector3fcgetPlaneNormal(MemorySegment mem, int offset) static PositiongetPosition(MemorySegment mem) static PositiongetPosition(MemorySegment mem, int offset) static PositionDistanceOffsetTypestatic PositionDistanceOffsetTypegetPositionDistanceOffsetType(MemorySegment mem, int offset) static floatstatic floatgetPositionLerpSpeed(MemorySegment mem, int offset) static Positionstatic PositiongetPositionOffset(MemorySegment mem, int offset) static PositionTypestatic PositionTypegetPositionType(MemorySegment mem, int offset) static DirectiongetRotation(MemorySegment mem) static DirectiongetRotation(MemorySegment mem, int offset) static floatstatic floatgetRotationLerpSpeed(MemorySegment mem, int offset) static Directionstatic DirectiongetRotationOffset(MemorySegment mem, int offset) static RotationTypestatic RotationTypegetRotationType(MemorySegment mem, int offset) static booleanstatic booleangetSendMouseMotion(MemorySegment mem, int offset) static booleanstatic booleangetSkipCharacterPhysics(MemorySegment mem, int offset) static floatstatic floatgetSpeedModifier(MemorySegment mem, int offset) static booleanhasBaseFov(MemorySegment mem, int offset) static booleanhasDepthOfField(MemorySegment mem, int offset) inthashCode()static booleanhasLookMultiplier(MemorySegment mem, int offset) static booleanhasMovementForceRotation(MemorySegment mem, int offset) static booleanhasMovementMultiplier(MemorySegment mem, int offset) static booleanhasPlaneNormal(MemorySegment mem, int offset) static booleanhasPosition(MemorySegment mem, int offset) static booleanhasPositionOffset(MemorySegment mem, int offset) static booleanhasRotation(MemorySegment mem, int offset) static booleanhasRotationOffset(MemorySegment mem, int offset) static voidrequireBounds(MemorySegment mem, int offset) Checks that the fixed block fits.intserialize(MemorySegment mem, int offset) static ServerCameraSettingstoObject(MemorySegment mem) static ServerCameraSettingstoObject(MemorySegment mem, int offset) static ServerCameraSettingstoObject(MemorySegment mem, int offset, ReadCursor cursor) Decodes one ServerCameraSettings 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:
-
positionLerpSpeed
public float positionLerpSpeed -
rotationLerpSpeed
public float rotationLerpSpeed -
distance
public float distance -
speedModifier
public float speedModifier -
allowPitchControls
public boolean allowPitchControls -
displayCursor
public boolean displayCursor -
displayReticle
public boolean displayReticle -
mouseInputTargetType
-
sendMouseMotion
public boolean sendMouseMotion -
skipCharacterPhysics
public boolean skipCharacterPhysics -
isFirstPerson
public boolean isFirstPerson -
hideHeldItem
public boolean hideHeldItem -
movementForceRotationType
-
movementForceRotation
-
attachedToType
-
attachedToEntityId
public int attachedToEntityId -
eyeOffset
public boolean eyeOffset -
followAttachedEntity
public boolean followAttachedEntity -
positionDistanceOffsetType
-
positionOffset
-
rotationOffset
-
positionType
-
position
-
rotationType
-
rotation
-
canMoveType
-
applyMovementType
-
movementMultiplier
@Nullable public org.joml.Vector3fc movementMultiplier -
applyLookType
-
lookMultiplier
@Nullable public org.joml.Vector2fc lookMultiplier -
mouseInputType
-
planeNormal
@Nullable public org.joml.Vector3fc planeNormal -
baseFov
-
depthOfField
-
-
Constructor Details
-
ServerCameraSettings
public ServerCameraSettings() -
ServerCameraSettings
public ServerCameraSettings(float positionLerpSpeed, float rotationLerpSpeed, float distance, float speedModifier, boolean allowPitchControls, boolean displayCursor, boolean displayReticle, @Nonnull MouseInputTargetType mouseInputTargetType, boolean sendMouseMotion, boolean skipCharacterPhysics, boolean isFirstPerson, boolean hideHeldItem, @Nonnull MovementForceRotationType movementForceRotationType, @Nullable Direction movementForceRotation, @Nonnull AttachedToType attachedToType, int attachedToEntityId, boolean eyeOffset, boolean followAttachedEntity, @Nonnull PositionDistanceOffsetType positionDistanceOffsetType, @Nullable Position positionOffset, @Nullable Direction rotationOffset, @Nonnull PositionType positionType, @Nullable Position position, @Nonnull RotationType rotationType, @Nullable Direction rotation, @Nonnull CanMoveType canMoveType, @Nonnull ApplyMovementType applyMovementType, @Nullable org.joml.Vector3fc movementMultiplier, @Nonnull ApplyLookType applyLookType, @Nullable org.joml.Vector2fc lookMultiplier, @Nonnull MouseInputType mouseInputType, @Nullable org.joml.Vector3fc planeNormal, @Nullable Float baseFov, @Nullable DepthOfFieldSettings depthOfField) -
ServerCameraSettings
-
-
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. -
getPositionLerpSpeed
-
getPositionLerpSpeed
-
getRotationLerpSpeed
-
getRotationLerpSpeed
-
getDistance
-
getDistance
-
getSpeedModifier
-
getSpeedModifier
-
getAllowPitchControls
-
getAllowPitchControls
-
getDisplayCursor
-
getDisplayCursor
-
getDisplayReticle
-
getDisplayReticle
-
getMouseInputTargetType
-
getMouseInputTargetType
-
getSendMouseMotion
-
getSendMouseMotion
-
getSkipCharacterPhysics
-
getSkipCharacterPhysics
-
getIsFirstPerson
-
getIsFirstPerson
-
getHideHeldItem
-
getHideHeldItem
-
getMovementForceRotationType
-
getMovementForceRotationType
-
getMovementForceRotation
-
getMovementForceRotation
-
getAttachedToType
-
getAttachedToType
-
getAttachedToEntityId
-
getAttachedToEntityId
-
getEyeOffset
-
getEyeOffset
-
getFollowAttachedEntity
-
getFollowAttachedEntity
-
getPositionDistanceOffsetType
-
getPositionDistanceOffsetType
public static PositionDistanceOffsetType getPositionDistanceOffsetType(MemorySegment mem, int offset) -
getPositionOffset
-
getPositionOffset
-
getRotationOffset
-
getRotationOffset
-
getPositionType
-
getPositionType
-
getPosition
-
getPosition
-
getRotationType
-
getRotationType
-
getRotation
-
getRotation
-
getCanMoveType
-
getCanMoveType
-
getApplyMovementType
-
getApplyMovementType
-
getMovementMultiplier
-
getMovementMultiplier
-
getApplyLookType
-
getApplyLookType
-
getLookMultiplier
-
getLookMultiplier
-
getMouseInputType
-
getMouseInputType
-
getPlaneNormal
-
getPlaneNormal
-
getBaseFov
-
getBaseFov
-
getDepthOfField
-
getDepthOfField
-
hasMovementForceRotation
-
hasPositionOffset
-
hasRotationOffset
-
hasPosition
-
hasRotation
-
hasMovementMultiplier
-
hasLookMultiplier
-
hasPlaneNormal
-
hasBaseFov
-
hasDepthOfField
-
toObject
-
toObject
-
toObject
public static ServerCameraSettings toObject(MemorySegment mem, int offset, @Nullable ReadCursor cursor) Decodes one ServerCameraSettings 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
-