ServerCameraSettings
Package: com.hypixel.hytale.protocol
public class ServerCameraSettingsProtocol data structure in the Camera/View group.
Fields
Section titled “Fields”| Type | Name | Nullable | Description |
|---|---|---|---|
float | positionLerpSpeed | No | Default: 1.0F. |
float | rotationLerpSpeed | No | Default: 1.0F. |
float | distance | No | |
float | speedModifier | No | Default: 1.0F. |
boolean | allowPitchControls | No | |
boolean | displayCursor | No | |
boolean | displayReticle | No | |
| MouseInputTargetType | mouseInputTargetType | No | Default: MouseInputTargetType.Any. |
boolean | sendMouseMotion | No | |
boolean | skipCharacterPhysics | No | |
boolean | isFirstPerson | No | Default: true. |
| MovementForceRotationType | movementForceRotationType | No | Default: MovementForceRotationType.AttachedToHead. |
| Direction | movementForceRotation | Yes | |
| AttachedToType | attachedToType | No | Default: AttachedToType.LocalPlayer. |
int | attachedToEntityId | No | |
boolean | eyeOffset | No | |
| PositionDistanceOffsetType | positionDistanceOffsetType | No | Default: PositionDistanceOffsetType.DistanceOffset. |
| Position | positionOffset | Yes | |
| Direction | rotationOffset | Yes | |
| PositionType | positionType | No | Default: PositionType.AttachedToPlusOffset. |
| Position | position | Yes | |
| RotationType | rotationType | No | Default: RotationType.AttachedToPlusOffset. |
| Direction | rotation | Yes | |
| CanMoveType | canMoveType | No | Default: CanMoveType.AttachedToLocalPlayer. |
| ApplyMovementType | applyMovementType | No | Default: ApplyMovementType.CharacterController. |
| Vector3f | movementMultiplier | Yes | |
| ApplyLookType | applyLookType | No | Default: ApplyLookType.LocalPlayerLookOrientation. |
| Vector2f | lookMultiplier | Yes | |
| MouseInputType | mouseInputType | No | Default: MouseInputType.LookAtTarget. |
| Vector3f | planeNormal | Yes |
Serialization Layout
Section titled “Serialization Layout”| Constant | Value |
|---|---|
NULLABLE_BIT_FIELD_SIZE | 1 |
FIXED_BLOCK_SIZE | 154 |
VARIABLE_FIELD_COUNT | 0 |
VARIABLE_BLOCK_START | 154 |
MAX_SIZE | 154 |
Binary layout: 1 null-bit byte + 154 bytes of fixed fields. All multi-byte primitives use little-endian encoding.
Methods
Section titled “Methods”@Nonnullpublic static ServerCameraSettings deserialize(@Nonnull ByteBuf buf, int offset)Deserializes a ServerCameraSettings from the given buffer at the specified offset.
public static int computeBytesConsumed(@Nonnull ByteBuf buf, int offset)Returns the total number of bytes consumed by this ServerCameraSettings starting at the given offset.
public void serialize(@Nonnull ByteBuf buf)Serializes this ServerCameraSettings into the given buffer.
@Overridepublic int computeSize()Returns the serialized size in bytes.
Related Types
Section titled “Related Types”
Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.