Contents
- Description
- Field Summary
- Constructor Summary
- Method Summary
- Field Details
- Constructor Details
- Method Details
- requireBounds(MemorySegment, int)
- getMagnificationMultiplier(MemorySegment)
- getMagnificationMultiplier(MemorySegment, int)
- getMouseSensitivityMultiplier(MemorySegment)
- getMouseSensitivityMultiplier(MemorySegment, int)
- getOverlayTexture(MemorySegment)
- getOverlayTexture(MemorySegment, int)
- getDepthOfField(MemorySegment)
- getDepthOfField(MemorySegment, int)
- getAllowCameraOrbit(MemorySegment)
- getAllowCameraOrbit(MemorySegment, int)
- getForcePerspective(MemorySegment)
- getForcePerspective(MemorySegment, int)
- getLodMultiplier(MemorySegment)
- getLodMultiplier(MemorySegment, int)
- getInLerp(MemorySegment)
- getInLerp(MemorySegment, int)
- getOutLerp(MemorySegment)
- getOutLerp(MemorySegment, int)
- getOverlayFade(MemorySegment)
- getOverlayFade(MemorySegment, int)
- getOverlayFadeInPerSecond(MemorySegment)
- getOverlayFadeInPerSecond(MemorySegment, int)
- getOverlayFadeOutPerSecond(MemorySegment)
- getOverlayFadeOutPerSecond(MemorySegment, int)
- hasOverlayTexture(MemorySegment, int)
- toObject(MemorySegment)
- toObject(MemorySegment, int)
- toObject(MemorySegment, int, ReadCursor)
- serialize(MemorySegment, int)
- computeSize()
- clone()
- equals(Object)
- hashCode()
Class ZoomConfig
java.lang.Object
com.hypixel.hytale.protocol.ZoomConfig
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanbooleanstatic final intfloatfloatfloatstatic final intfloatstatic final intfloatbooleanfloatfloatstatic final intstatic final int -
Constructor Summary
ConstructorsConstructorDescriptionZoomConfig(float magnificationMultiplier, float mouseSensitivityMultiplier, String overlayTexture, boolean depthOfField, boolean allowCameraOrbit, ForcedPerspective forcePerspective, float lodMultiplier, float inLerp, float outLerp, boolean overlayFade, float overlayFadeInPerSecond, float overlayFadeOutPerSecond) ZoomConfig(ZoomConfig other) -
Method Summary
Modifier and TypeMethodDescriptionclone()intbooleanstatic booleanstatic booleangetAllowCameraOrbit(MemorySegment mem, int offset) static booleanstatic booleangetDepthOfField(MemorySegment mem, int offset) static ForcedPerspectivestatic ForcedPerspectivegetForcePerspective(MemorySegment mem, int offset) static floatgetInLerp(MemorySegment mem) static floatgetInLerp(MemorySegment mem, int offset) static floatstatic floatgetLodMultiplier(MemorySegment mem, int offset) static floatstatic floatgetMagnificationMultiplier(MemorySegment mem, int offset) static floatstatic floatgetMouseSensitivityMultiplier(MemorySegment mem, int offset) static floatgetOutLerp(MemorySegment mem) static floatgetOutLerp(MemorySegment mem, int offset) static booleanstatic booleangetOverlayFade(MemorySegment mem, int offset) static floatstatic floatgetOverlayFadeInPerSecond(MemorySegment mem, int offset) static floatstatic floatgetOverlayFadeOutPerSecond(MemorySegment mem, int offset) static Stringstatic StringgetOverlayTexture(MemorySegment mem, int offset) inthashCode()static booleanhasOverlayTexture(MemorySegment mem, int offset) static voidrequireBounds(MemorySegment mem, int offset) Checks that the fixed block fits.intserialize(MemorySegment mem, int offset) static ZoomConfigtoObject(MemorySegment mem) static ZoomConfigtoObject(MemorySegment mem, int offset) static ZoomConfigtoObject(MemorySegment mem, int offset, ReadCursor cursor) Decodes one ZoomConfig 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:
-
magnificationMultiplier
public float magnificationMultiplier -
mouseSensitivityMultiplier
public float mouseSensitivityMultiplier -
overlayTexture
-
depthOfField
public boolean depthOfField -
allowCameraOrbit
public boolean allowCameraOrbit -
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
-
-
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. -
getMagnificationMultiplier
-
getMagnificationMultiplier
-
getMouseSensitivityMultiplier
-
getMouseSensitivityMultiplier
-
getOverlayTexture
-
getOverlayTexture
-
getDepthOfField
-
getDepthOfField
-
getAllowCameraOrbit
-
getAllowCameraOrbit
-
getForcePerspective
-
getForcePerspective
-
getLodMultiplier
-
getLodMultiplier
-
getInLerp
-
getInLerp
-
getOutLerp
-
getOutLerp
-
getOverlayFade
-
getOverlayFade
-
getOverlayFadeInPerSecond
-
getOverlayFadeInPerSecond
-
getOverlayFadeOutPerSecond
-
getOverlayFadeOutPerSecond
-
hasOverlayTexture
-
toObject
-
toObject
-
toObject
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
-
computeSize
public int computeSize() -
clone
-
equals
-
hashCode
-