Apollo
Developers
Mods
HurtCam

Hurt Cam

Manage the hurt camera shaking animation.

Integration

How to toggle the mod

public void toggleHurtCamExample(Player viewer, boolean value) {
    Optional<ApolloPlayer> apolloPlayerOpt = Apollo.getPlayerManager().getPlayer(viewer.getUniqueId());
    apolloPlayerOpt.ifPresent(apolloPlayer -> this.modSettingModule.getOptions().set(apolloPlayer, ModHurtCam.ENABLED, value));
}

Available options

  • ENABLED

    • Config Key: enabled
    • Values
      • Type: Boolean
      • Default: false
  • DISABLE_HURT_CAM

    • Config Key: disable-hurt-cam
    • Values
      • Type: Boolean
      • Default: false
  • HURT_SHAKING_INTENSITY

    • Config Key: hurt-shaking-intensity
    • Values
      • Type: Float
      • Default: 1.0F
      • Minimum: 0.0F
      • Maximum: 2.0F
  • OLD_CAMERA_TILT

    • Config Key: old-camera-tilt
    • Values
      • Type: Boolean
      • Default: false