For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /server-graphics/classes/BiomeLighting.md.

Class: BiomeLighting experimental

biome

Beta

用于在「灵动视效」(Vibrant Visuals) 中影响光照。

Used to affect lighting for Vibrant Visuals

Methods

resetAmbientColor()

resetAmbientColor(): void

World Mutation Beta

Returns

void

Remarks

将环境光颜色重置为资源包所设置的值。

Resets the ambient color to the value set by resource packs

Throws

This function can throw errors.

EngineError


resetAmbientIlluminance()

resetAmbientIlluminance(): void

World Mutation Beta

Returns

void

Remarks

将环境光照度重置为资源包所设置的值。

Resets the ambient illuminance to the value set by resource packs

Throws

This function can throw errors.

EngineError


resetEmissiveDesaturation()

resetEmissiveDesaturation(): void

World Mutation Beta

Returns

void

Remarks

将自发光去饱和度重置为资源包所设置的值。

Resets the emissive desaturation to the value set by resource packs

Throws

This function can throw errors.

EngineError


resetFlashColor()

resetFlashColor(): void

World Mutation Beta

Returns

void

Remarks

将闪光颜色重置为资源包所设置的值。

Resets the flash color to the value set by resource packs

Throws

This function can throw errors.

EngineError


resetFlashIlluminance()

resetFlashIlluminance(): void

World Mutation Beta

Returns

void

Remarks

将闪光照度重置为资源包所设置的值。

Resets the flash illuminance to the value set by resource packs

Throws

This function can throw errors.

EngineError


resetMoonColor()

resetMoonColor(): void

World Mutation Beta

Returns

void

Remarks

将月亮颜色重置为资源包所设置的值。

Resets the moon color to the value set by resource packs

Throws

This function can throw errors.

EngineError


resetMoonIlluminance()

resetMoonIlluminance(): void

World Mutation Beta

Returns

void

Remarks

将月亮照度重置为资源包所设置的值。

Resets the moon illuminance to the value set by resource packs

Throws

This function can throw errors.

EngineError


resetOrbitalOffsetDegrees()

resetOrbitalOffsetDegrees(): void

World Mutation Beta

Returns

void

Remarks

将轨道偏移角度重置为资源包所设置的值。

Resets the orbital offset to the value set by resource packs

Throws

This function can throw errors.

EngineError


resetSkyIntensity()

resetSkyIntensity(): void

World Mutation Beta

Returns

void

Remarks

将天空强度重置为资源包所设置的值。

Resets the sky intensity to the value set by resource packs

Throws

This function can throw errors.

EngineError


resetSunColor()

resetSunColor(): void

World Mutation Beta

Returns

void

Remarks

将太阳颜色重置为资源包所设置的值。

Resets the sun color to the value set by resource packs

Throws

This function can throw errors.

EngineError


resetSunIlluminance()

resetSunIlluminance(): void

World Mutation Beta

Returns

void

Remarks

将太阳照度重置为资源包所设置的值。

Resets the sun illuminance to the value set by resource packs

Throws

This function can throw errors.

EngineError


setAmbientColor()

setAmbientColor(color): void

World Mutation Beta

Parameters

color

any

Returns

void

Remarks

为「灵动视效」中的光照设置环境光颜色。

Sets the ambient color for lighting in Vibrant Visuals

Throws

This function can throw errors.

InvalidArgumentError


setAmbientIlluminance()

setAmbientIlluminance(illuminance): void

World Mutation Beta

Parameters

illuminance

number | Record<number, number>

Returns

void

Remarks

为「灵动视效」中的光照设置环境光照度。

Sets the ambient illuminance for lighting in Vibrant Visuals

Throws

This function can throw errors.

InvalidArgumentError


setEmissiveDesaturation()

setEmissiveDesaturation(value): void

World Mutation Beta

Parameters

value

number

Returns

void

Remarks

为「灵动视效」中的光照设置自发光去饱和度。

Sets the emissive desaturation for lighting in Vibrant Visuals

Throws

This function can throw errors.

InvalidArgumentError


setFlashColor()

setFlashColor(color): void

World Mutation Beta

Parameters

color

any

Returns

void

Remarks

为「灵动视效」中的光照设置闪光颜色。

Sets the flash color for lighting in Vibrant Visuals

Throws

This function can throw errors.

InvalidArgumentError


setFlashIlluminance()

setFlashIlluminance(illuminance): void

World Mutation Beta

Parameters

illuminance

number | Record<number, number>

Returns

void

Remarks

为「灵动视效」中的光照设置闪光照度。

Sets the flash illuminance for lighting in Vibrant Visuals

Throws

This function can throw errors.

InvalidArgumentError


setMoonColor()

setMoonColor(color): void

World Mutation Beta

Parameters

color

any

Returns

void

Remarks

为「灵动视效」中的光照设置月亮颜色。

Sets the moon color for lighting in Vibrant Visuals

Throws

This function can throw errors.

InvalidArgumentError


setMoonIlluminance()

setMoonIlluminance(illuminance): void

World Mutation Beta

Parameters

illuminance

number | Record<number, number>

Returns

void

Remarks

为「灵动视效」中的光照设置月亮照度。

Sets the moon illuminance for lighting in Vibrant Visuals

Throws

This function can throw errors.

InvalidArgumentError


setOrbitalOffsetDegrees()

setOrbitalOffsetDegrees(degrees): void

World Mutation Beta

Parameters

degrees

number | Record<number, number>

Returns

void

Remarks

为「灵动视效」中的光照设置轨道偏移。

Sets the orbital offset for lighting in Vibrant Visuals

Throws

This function can throw errors.

InvalidArgumentError


setSkyIntensity()

setSkyIntensity(intensity): void

World Mutation Beta

Parameters

intensity

number | Record<number, number>

Returns

void

Remarks

为「灵动视效」中的光照设置天空强度。

Sets the sky intensity for lighting in Vibrant Visuals

Throws

This function can throw errors.

InvalidArgumentError


setSunColor()

setSunColor(color): void

World Mutation Beta

Parameters

color

any

Returns

void

Remarks

为「灵动视效」中的光照设置太阳颜色。

Sets the sun color for lighting in Vibrant Visuals

Throws

This function can throw errors.

InvalidArgumentError


setSunIlluminance()

setSunIlluminance(illuminance): void

World Mutation Beta

Parameters

illuminance

number | Record<number, number>

Returns

void

Remarks

为「灵动视效」中的光照设置太阳照度。

Sets the sun illuminance for lighting in Vibrant Visuals

Throws

This function can throw errors.

InvalidArgumentError

同领域相关