Class SkyLayerDefinition.Builder
java.lang.Object
net.ixdarklord.coolcatcanvas.api.client.sky.SkyLayerDefinition.Builder
- Enclosing class:
SkyLayerDefinition
-
Method Summary
Modifier and TypeMethodDescriptionanimation(int frames, float frameTime, boolean interpolate) animation(SkyLayerDefinition.Animation animation) blur(boolean blur) build()dayFade(SkyLayerDefinition.DayFade dayFade) fog(float fog) fragmentShader(net.minecraft.resources.ResourceLocation fragmentShader) orientation(float x, float y, float z) Degrees: yaw (y), then pitch (x), then roll (z).param(int index, float... values) SetsSkyParams[index]; missing components are 0.paramColor(int index, int argb) SetsSkyParams[index]to a packed ARGB color, as RGBA.rainFade(float rainFade) rotation(SkyLayerDefinition.Rotation rotation) size(float degrees) stage(SkyLayerStage stage) texture(net.minecraft.resources.ResourceLocation texture) tint(int argb) Packed ARGB; its alpha is the layer's base opacity.
-
Method Details
-
name
-
texture
-
fragmentShader
public SkyLayerDefinition.Builder fragmentShader(net.minecraft.resources.ResourceLocation fragmentShader) -
blend
-
tint
Packed ARGB; its alpha is the layer's base opacity. -
stage
-
orientation
Degrees: yaw (y), then pitch (x), then roll (z). -
rotation
-
rotation
public SkyLayerDefinition.Builder rotation(float axisX, float axisY, float axisZ, float speed, SkyClock clock) -
animation
-
animation
-
dayFade
-
rainFade
-
fog
-
blur
-
size
-
param
SetsSkyParams[index]; missing components are 0. -
paramColor
SetsSkyParams[index]to a packed ARGB color, as RGBA. -
build
- Throws:
IllegalStateException- if the layer is invalid
-