Skip to content

ClientEffectWorldSettings

Package: com.hypixel.hytale.server.core.universe.world

public class ClientEffectWorldSettings

Configurable settings for client-side visual effects in a world, including sun position, bloom, and sunshaft parameters. Serialized via BuilderCodec and stored in WorldConfig. Produces UpdateSunSettings and UpdatePostFxSettings packets for client synchronization.

FieldTypeDefaultCodec KeyDescription
sunHeightPercentfloat100.0FSunHeightPercentSun height as a percentage.
sunAngleRadiansfloat0.0FSunAngleDegrees (stored as degrees)Sun angle in radians (codec converts degrees to radians).
bloomIntensityfloat0.3FBloomIntensityPost-processing bloom intensity.
bloomPowerfloat8.0FBloomPowerPost-processing bloom power exponent.
sunIntensityfloat0.25FSunIntensityDirectional sun light intensity.
sunshaftIntensityfloat0.3FSunshaftIntensitySunshaft (god ray) intensity.
sunshaftScaleFactorfloat4.0FSunshaftScaleFactorSunshaft scale factor.
MethodReturn TypeDescription
getSunHeightPercent()floatReturns the sun height percentage.
setSunHeightPercent(float)voidSets the sun height percentage.
getSunAngleRadians()floatReturns the sun angle in radians.
setSunAngleRadians(float)voidSets the sun angle in radians.
getBloomIntensity()floatReturns the bloom intensity.
setBloomIntensity(float)voidSets the bloom intensity.
getBloomPower()floatReturns the bloom power.
setBloomPower(float)voidSets the bloom power.
getSunIntensity()floatReturns the sun intensity.
setSunIntensity(float)voidSets the sun intensity.
getSunshaftIntensity()floatReturns the sunshaft intensity.
setSunshaftIntensity(float)voidSets the sunshaft intensity.
getSunshaftScaleFactor()floatReturns the sunshaft scale factor.
setSunshaftScaleFactor(float)voidSets the sunshaft scale factor.
createSunSettingsPacket()UpdateSunSettingsCreates a packet with current sun height and angle.
createPostFxSettingsPacket()UpdatePostFxSettingsCreates a packet with current bloom and sunshaft settings.
Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.