Class ZoomConfig

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

public class ZoomConfig 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:
    • magnificationMultiplier

      public float magnificationMultiplier
    • mouseSensitivityMultiplier

      public float mouseSensitivityMultiplier
    • overlayTexture

      @Nullable public String overlayTexture
    • depthOfField

      public boolean depthOfField
    • allowCameraOrbit

      public boolean allowCameraOrbit
    • forcePerspective

      @Nonnull public ForcedPerspective forcePerspective
    • lodMultiplier

      public float lodMultiplier
    • inLerp

      public float inLerp
    • outLerp

      public float outLerp
    • overlayFade

      public boolean overlayFade
    • overlayFadeInPerSecond

      public float overlayFadeInPerSecond
    • overlayFadeOutPerSecond

      public float overlayFadeOutPerSecond
  • Constructor Details

    • ZoomConfig

      public ZoomConfig()
    • ZoomConfig

      public ZoomConfig(float magnificationMultiplier, float mouseSensitivityMultiplier, @Nullable String overlayTexture, boolean depthOfField, boolean allowCameraOrbit, @Nonnull ForcedPerspective forcePerspective, float lodMultiplier, float inLerp, float outLerp, boolean overlayFade, float overlayFadeInPerSecond, float overlayFadeOutPerSecond)
    • ZoomConfig

      public ZoomConfig(@Nonnull ZoomConfig 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.
    • getMagnificationMultiplier

      public static float getMagnificationMultiplier(MemorySegment mem)
    • getMagnificationMultiplier

      public static float getMagnificationMultiplier(MemorySegment mem, int offset)
    • getMouseSensitivityMultiplier

      public static float getMouseSensitivityMultiplier(MemorySegment mem)
    • getMouseSensitivityMultiplier

      public static float getMouseSensitivityMultiplier(MemorySegment mem, int offset)
    • getOverlayTexture

      @Nullable public static String getOverlayTexture(MemorySegment mem)
    • getOverlayTexture

      @Nullable public static String getOverlayTexture(MemorySegment mem, int offset)
    • getDepthOfField

      public static boolean getDepthOfField(MemorySegment mem)
    • getDepthOfField

      public static boolean getDepthOfField(MemorySegment mem, int offset)
    • getAllowCameraOrbit

      public static boolean getAllowCameraOrbit(MemorySegment mem)
    • getAllowCameraOrbit

      public static boolean getAllowCameraOrbit(MemorySegment mem, int offset)
    • getForcePerspective

      public static ForcedPerspective getForcePerspective(MemorySegment mem)
    • getForcePerspective

      public static ForcedPerspective getForcePerspective(MemorySegment mem, int offset)
    • getLodMultiplier

      public static float getLodMultiplier(MemorySegment mem)
    • getLodMultiplier

      public static float getLodMultiplier(MemorySegment mem, int offset)
    • getInLerp

      public static float getInLerp(MemorySegment mem)
    • getInLerp

      public static float getInLerp(MemorySegment mem, int offset)
    • getOutLerp

      public static float getOutLerp(MemorySegment mem)
    • getOutLerp

      public static float getOutLerp(MemorySegment mem, int offset)
    • getOverlayFade

      public static boolean getOverlayFade(MemorySegment mem)
    • getOverlayFade

      public static boolean getOverlayFade(MemorySegment mem, int offset)
    • getOverlayFadeInPerSecond

      public static float getOverlayFadeInPerSecond(MemorySegment mem)
    • getOverlayFadeInPerSecond

      public static float getOverlayFadeInPerSecond(MemorySegment mem, int offset)
    • getOverlayFadeOutPerSecond

      public static float getOverlayFadeOutPerSecond(MemorySegment mem)
    • getOverlayFadeOutPerSecond

      public static float getOverlayFadeOutPerSecond(MemorySegment mem, int offset)
    • hasOverlayTexture

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

      public static ZoomConfig toObject(MemorySegment mem)
    • toObject

      public static ZoomConfig toObject(MemorySegment mem, int offset)
    • toObject

      public static ZoomConfig toObject(MemorySegment mem, int offset, @Nullable ReadCursor cursor)
      Decodes one ZoomConfig 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 ZoomConfig clone()
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object