Class SkyboxControl.Target

java.lang.Object
net.ixdarklord.coolcatcanvas.api.sky.SkyboxControl.Target
Enclosing class:
SkyboxControl

public static final class SkyboxControl.Target extends Object
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 Details

    • enable

      public SkyboxControl.Target enable(net.minecraft.resources.ResourceLocation skybox)
    • disable

      public SkyboxControl.Target disable(net.minecraft.resources.ResourceLocation skybox)
    • toggle

      public SkyboxControl.Target 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.
    • setEnabled

      public SkyboxControl.Target setEnabled(net.minecraft.resources.ResourceLocation skybox, boolean enabled)
    • enableFor

      public SkyboxControl.Target enableFor(net.minecraft.resources.ResourceLocation skybox, int ticks)
      Fades in, stays for ticks, then fades out.
    • enableInstantly

      public SkyboxControl.Target enableInstantly(net.minecraft.resources.ResourceLocation skybox)
    • disableInstantly

      public SkyboxControl.Target disableInstantly(net.minecraft.resources.ResourceLocation skybox)
    • 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 to alpha over ticks, 0 for instantly.
    • setLayerParam

      public SkyboxControl.Target setLayerParam(net.minecraft.resources.ResourceLocation skybox, String layer, int index, int ticks, float... values)
      Moves a layer's SkyParams[index] to values (at most 4) over ticks, 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.