Class ServerCameraSettings

java.lang.Object
com.hypixel.hytale.protocol.ServerCameraSettings

public class ServerCameraSettings extends Object
  • 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

      @Nonnull public MouseInputTargetType mouseInputTargetType
    • sendMouseMotion

      public boolean sendMouseMotion
    • skipCharacterPhysics

      public boolean skipCharacterPhysics
    • isFirstPerson

      public boolean isFirstPerson
    • hideHeldItem

      public boolean hideHeldItem
    • movementForceRotationType

      @Nonnull public MovementForceRotationType movementForceRotationType
    • movementForceRotation

      @Nullable public Direction movementForceRotation
    • attachedToType

      @Nonnull public AttachedToType attachedToType
    • attachedToEntityId

      public int attachedToEntityId
    • eyeOffset

      public boolean eyeOffset
    • followAttachedEntity

      public boolean followAttachedEntity
    • positionDistanceOffsetType

      @Nonnull public PositionDistanceOffsetType positionDistanceOffsetType
    • positionOffset

      @Nullable public Position positionOffset
    • rotationOffset

      @Nullable public Direction rotationOffset
    • positionType

      @Nonnull public PositionType positionType
    • position

      @Nullable public Position position
    • rotationType

      @Nonnull public RotationType rotationType
    • rotation

      @Nullable public Direction rotation
    • canMoveType

      @Nonnull public CanMoveType canMoveType
    • applyMovementType

      @Nonnull public ApplyMovementType applyMovementType
    • movementMultiplier

      @Nullable public org.joml.Vector3fc movementMultiplier
    • applyLookType

      @Nonnull public ApplyLookType applyLookType
    • lookMultiplier

      @Nullable public org.joml.Vector2fc lookMultiplier
    • mouseInputType

      @Nonnull public MouseInputType mouseInputType
    • planeNormal

      @Nullable public org.joml.Vector3fc planeNormal
    • baseFov

      @Nullable public Float baseFov
    • depthOfField

      @Nullable public DepthOfFieldSettings 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

      public ServerCameraSettings(@Nonnull ServerCameraSettings other)
  • Method Details

    • requireBounds

      public static void requireBounds(MemorySegment mem, int offset)
      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

      public static float getPositionLerpSpeed(MemorySegment mem)
    • getPositionLerpSpeed

      public static float getPositionLerpSpeed(MemorySegment mem, int offset)
    • getRotationLerpSpeed

      public static float getRotationLerpSpeed(MemorySegment mem)
    • getRotationLerpSpeed

      public static float getRotationLerpSpeed(MemorySegment mem, int offset)
    • getDistance

      public static float getDistance(MemorySegment mem)
    • getDistance

      public static float getDistance(MemorySegment mem, int offset)
    • getSpeedModifier

      public static float getSpeedModifier(MemorySegment mem)
    • getSpeedModifier

      public static float getSpeedModifier(MemorySegment mem, int offset)
    • getAllowPitchControls

      public static boolean getAllowPitchControls(MemorySegment mem)
    • getAllowPitchControls

      public static boolean getAllowPitchControls(MemorySegment mem, int offset)
    • getDisplayCursor

      public static boolean getDisplayCursor(MemorySegment mem)
    • getDisplayCursor

      public static boolean getDisplayCursor(MemorySegment mem, int offset)
    • getDisplayReticle

      public static boolean getDisplayReticle(MemorySegment mem)
    • getDisplayReticle

      public static boolean getDisplayReticle(MemorySegment mem, int offset)
    • getMouseInputTargetType

      public static MouseInputTargetType getMouseInputTargetType(MemorySegment mem)
    • getMouseInputTargetType

      public static MouseInputTargetType getMouseInputTargetType(MemorySegment mem, int offset)
    • getSendMouseMotion

      public static boolean getSendMouseMotion(MemorySegment mem)
    • getSendMouseMotion

      public static boolean getSendMouseMotion(MemorySegment mem, int offset)
    • getSkipCharacterPhysics

      public static boolean getSkipCharacterPhysics(MemorySegment mem)
    • getSkipCharacterPhysics

      public static boolean getSkipCharacterPhysics(MemorySegment mem, int offset)
    • getIsFirstPerson

      public static boolean getIsFirstPerson(MemorySegment mem)
    • getIsFirstPerson

      public static boolean getIsFirstPerson(MemorySegment mem, int offset)
    • getHideHeldItem

      public static boolean getHideHeldItem(MemorySegment mem)
    • getHideHeldItem

      public static boolean getHideHeldItem(MemorySegment mem, int offset)
    • getMovementForceRotationType

      public static MovementForceRotationType getMovementForceRotationType(MemorySegment mem)
    • getMovementForceRotationType

      public static MovementForceRotationType getMovementForceRotationType(MemorySegment mem, int offset)
    • getMovementForceRotation

      @Nullable public static Direction getMovementForceRotation(MemorySegment mem)
    • getMovementForceRotation

      @Nullable public static Direction getMovementForceRotation(MemorySegment mem, int offset)
    • getAttachedToType

      public static AttachedToType getAttachedToType(MemorySegment mem)
    • getAttachedToType

      public static AttachedToType getAttachedToType(MemorySegment mem, int offset)
    • getAttachedToEntityId

      public static int getAttachedToEntityId(MemorySegment mem)
    • getAttachedToEntityId

      public static int getAttachedToEntityId(MemorySegment mem, int offset)
    • getEyeOffset

      public static boolean getEyeOffset(MemorySegment mem)
    • getEyeOffset

      public static boolean getEyeOffset(MemorySegment mem, int offset)
    • getFollowAttachedEntity

      public static boolean getFollowAttachedEntity(MemorySegment mem)
    • getFollowAttachedEntity

      public static boolean getFollowAttachedEntity(MemorySegment mem, int offset)
    • getPositionDistanceOffsetType

      public static PositionDistanceOffsetType getPositionDistanceOffsetType(MemorySegment mem)
    • getPositionDistanceOffsetType

      public static PositionDistanceOffsetType getPositionDistanceOffsetType(MemorySegment mem, int offset)
    • getPositionOffset

      @Nullable public static Position getPositionOffset(MemorySegment mem)
    • getPositionOffset

      @Nullable public static Position getPositionOffset(MemorySegment mem, int offset)
    • getRotationOffset

      @Nullable public static Direction getRotationOffset(MemorySegment mem)
    • getRotationOffset

      @Nullable public static Direction getRotationOffset(MemorySegment mem, int offset)
    • getPositionType

      public static PositionType getPositionType(MemorySegment mem)
    • getPositionType

      public static PositionType getPositionType(MemorySegment mem, int offset)
    • getPosition

      @Nullable public static Position getPosition(MemorySegment mem)
    • getPosition

      @Nullable public static Position getPosition(MemorySegment mem, int offset)
    • getRotationType

      public static RotationType getRotationType(MemorySegment mem)
    • getRotationType

      public static RotationType getRotationType(MemorySegment mem, int offset)
    • getRotation

      @Nullable public static Direction getRotation(MemorySegment mem)
    • getRotation

      @Nullable public static Direction getRotation(MemorySegment mem, int offset)
    • getCanMoveType

      public static CanMoveType getCanMoveType(MemorySegment mem)
    • getCanMoveType

      public static CanMoveType getCanMoveType(MemorySegment mem, int offset)
    • getApplyMovementType

      public static ApplyMovementType getApplyMovementType(MemorySegment mem)
    • getApplyMovementType

      public static ApplyMovementType getApplyMovementType(MemorySegment mem, int offset)
    • getMovementMultiplier

      @Nullable public static org.joml.Vector3fc getMovementMultiplier(MemorySegment mem)
    • getMovementMultiplier

      @Nullable public static org.joml.Vector3fc getMovementMultiplier(MemorySegment mem, int offset)
    • getApplyLookType

      public static ApplyLookType getApplyLookType(MemorySegment mem)
    • getApplyLookType

      public static ApplyLookType getApplyLookType(MemorySegment mem, int offset)
    • getLookMultiplier

      @Nullable public static org.joml.Vector2fc getLookMultiplier(MemorySegment mem)
    • getLookMultiplier

      @Nullable public static org.joml.Vector2fc getLookMultiplier(MemorySegment mem, int offset)
    • getMouseInputType

      public static MouseInputType getMouseInputType(MemorySegment mem)
    • getMouseInputType

      public static MouseInputType getMouseInputType(MemorySegment mem, int offset)
    • getPlaneNormal

      @Nullable public static org.joml.Vector3fc getPlaneNormal(MemorySegment mem)
    • getPlaneNormal

      @Nullable public static org.joml.Vector3fc getPlaneNormal(MemorySegment mem, int offset)
    • getBaseFov

      @Nullable public static Float getBaseFov(MemorySegment mem)
    • getBaseFov

      @Nullable public static Float getBaseFov(MemorySegment mem, int offset)
    • getDepthOfField

      @Nullable public static DepthOfFieldSettings getDepthOfField(MemorySegment mem)
    • getDepthOfField

      @Nullable public static DepthOfFieldSettings getDepthOfField(MemorySegment mem, int offset)
    • hasMovementForceRotation

      public static boolean hasMovementForceRotation(MemorySegment mem, int offset)
    • hasPositionOffset

      public static boolean hasPositionOffset(MemorySegment mem, int offset)
    • hasRotationOffset

      public static boolean hasRotationOffset(MemorySegment mem, int offset)
    • hasPosition

      public static boolean hasPosition(MemorySegment mem, int offset)
    • hasRotation

      public static boolean hasRotation(MemorySegment mem, int offset)
    • hasMovementMultiplier

      public static boolean hasMovementMultiplier(MemorySegment mem, int offset)
    • hasLookMultiplier

      public static boolean hasLookMultiplier(MemorySegment mem, int offset)
    • hasPlaneNormal

      public static boolean hasPlaneNormal(MemorySegment mem, int offset)
    • hasBaseFov

      public static boolean hasBaseFov(MemorySegment mem, int offset)
    • hasDepthOfField

      public static boolean hasDepthOfField(MemorySegment mem, int offset)
    • toObject

      public static ServerCameraSettings toObject(MemorySegment mem)
    • toObject

      public static ServerCameraSettings toObject(MemorySegment mem, int offset)
    • 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

      public int serialize(@Nonnull MemorySegment mem, int offset)
    • computeSize

      public int computeSize()
    • clone

      public ServerCameraSettings clone()
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object