Contents
Class CameraShakeEffect
java.lang.Object
com.hypixel.hytale.server.core.asset.type.camera.CameraEffect
com.hypixel.hytale.builtin.adventure.camera.asset.cameraeffect.CameraShakeEffect
- All Implemented Interfaces:
JsonAsset<String>, JsonAssetWithMap<String, IndexedLookupTableAssetMap<String, CameraEffect>>
A class that represents the camera shake effect, which is a camera effect for camera configuration.
-
Nested Class Summary
Nested classes/interfaces inherited from class CameraEffect
CameraEffect.MissingCameraEffect -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BuilderCodec<CameraShakeEffect> The codec used ot parseCameraShakeEffectinstances.Fields inherited from class CameraEffect
CHILD_ASSET_CODEC, VALIDATOR_CACHE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloatcalculateIntensity(float intensityContext) Called to calculate the intensity of this configuration based on the given context.createCameraShakePacket(float intensityContext) floattoString()Methods inherited from class CameraEffect
getAssetMap, getAssetStore, getId
-
Field Details
-
CODEC
The codec used ot parseCameraShakeEffectinstances.
-
-
Constructor Details
-
CameraShakeEffect
public CameraShakeEffect()
-
-
Method Details
-
getAccumulationMode
- Returns:
- the accumulation mode of this configuration, or the default value if not configured.
-
getDefaultIntensityContext
public float getDefaultIntensityContext()- Returns:
- the intensity context of this configuration, or the default value if not configured.
-
calculateIntensity
public float calculateIntensity(float intensityContext) Called to calculate the intensity of this configuration based on the given context.- Parameters:
intensityContext- The provided intensity context.- Returns:
- the calculated intensity based on the given context.
-
createCameraShakePacket
- Specified by:
createCameraShakePacketin classCameraEffect- Returns:
- a newly created packet based on the camera effect type.
-
createCameraShakePacket
- Specified by:
createCameraShakePacketin classCameraEffect- Parameters:
intensityContext- The intensity context provided.- Returns:
- a newly created packet based on the camera effect type and provided intensity context.
-
toString
-