Class SkyboxControl.Target
java.lang.Object
net.ixdarklord.coolcatcanvas.api.sky.SkyboxControl.Target
- Enclosing class:
- SkyboxControl
Players to send skybox commands to: the same commands as the static methods, each sent to all of them. Players
are looked up again for every command, so a target can be kept and reused.
-
Method Summary
Modifier and TypeMethodDescriptiondisable(net.minecraft.resources.ResourceLocation skybox) disableInstantly(net.minecraft.resources.ResourceLocation skybox) enable(net.minecraft.resources.ResourceLocation skybox) enableFor(net.minecraft.resources.ResourceLocation skybox, int ticks) Fades in, stays forticks, then fades out.enableInstantly(net.minecraft.resources.ResourceLocation skybox) resetLayer(net.minecraft.resources.ResourceLocation skybox, String layer) Undoes what code or commands changed on a layer: visible, full opacity, the definition's tint and params.setEnabled(net.minecraft.resources.ResourceLocation skybox, boolean enabled) setLayerAlpha(net.minecraft.resources.ResourceLocation skybox, String layer, float alpha, int ticks) Moves a layer's opacity multiplier toalphaoverticks, 0 for instantly.setLayerParam(net.minecraft.resources.ResourceLocation skybox, String layer, int index, int ticks, float... values) Moves a layer'sSkyParams[index]tovalues(at most 4) overticks, 0 for instantly.setLayerVisible(net.minecraft.resources.ResourceLocation skybox, String layer, boolean visible) toggle(net.minecraft.resources.ResourceLocation skybox) Each client turns it on if it's off there, and off if it's on: players can end up differing.
-
Method Details
-
enable
-
disable
-
toggle
Each client turns it on if it's off there, and off if it's on: players can end up differing. -
setEnabled
public SkyboxControl.Target setEnabled(net.minecraft.resources.ResourceLocation skybox, boolean enabled) -
enableFor
Fades in, stays forticks, then fades out. -
enableInstantly
-
disableInstantly
-
setLayerVisible
public SkyboxControl.Target setLayerVisible(net.minecraft.resources.ResourceLocation skybox, String layer, boolean visible) -
setLayerAlpha
public SkyboxControl.Target setLayerAlpha(net.minecraft.resources.ResourceLocation skybox, String layer, float alpha, int ticks) Moves a layer's opacity multiplier toalphaoverticks, 0 for instantly. -
setLayerParam
public SkyboxControl.Target setLayerParam(net.minecraft.resources.ResourceLocation skybox, String layer, int index, int ticks, float... values) Moves a layer'sSkyParams[index]tovalues(at most 4) overticks, 0 for instantly. -
resetLayer
public SkyboxControl.Target resetLayer(net.minecraft.resources.ResourceLocation skybox, String layer) Undoes what code or commands changed on a layer: visible, full opacity, the definition's tint and params.
-