java.lang.Object
net.ixdarklord.coolcatcanvas.internal.client.sky.SkyboxManager

public final class SkyboxManager extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
  • Method Summary

    Modifier and Type
    Method
    Description
    all()
     
    static boolean
    As the End sky starts; true if it's fully hidden, so skipped (its layers drawn instead).
    static void
    beginFrame(net.minecraft.client.DeltaTracker deltaTracker)
     
    static boolean
    beginSky(org.joml.Matrix4f view, org.joml.Matrix4f projection, float partialTick, net.minecraft.client.Camera camera, Runnable skyFogSetup)
    As vanilla's sky pass starts: keeps the camera and the angles layers can follow.
    static void
     
    static void
    After the End sky: both stages of layers.
    static void
     
    static void
    Fades the sun or the moon, about to be drawn with the shader color.
    static void
    Fades the stars, about to be drawn with the shader color.
    static @Nullable Skybox
    get(net.minecraft.resources.ResourceLocation id)
     
    static float
    How hidden a part of vanilla's sky is this frame, from 0 (drawn as usual) to 1 (not drawn).
    static Skybox
    register(net.minecraft.resources.ResourceLocation id, @Nullable net.minecraft.resources.ResourceLocation definitionId, @Nullable SkyboxDefinition definition)
     
    static void
    reload(net.minecraft.server.packs.resources.ResourceManager resourceManager)
    After shaders load: finds resource pack skyboxes, then rebuilds every skybox from the new resources.
    static void
    Draws the visible skyboxes' layers of a stage, inside vanilla's sky pass (depth writes already off).
    static net.minecraft.world.phys.Vec3
    skyColor(net.minecraft.world.phys.Vec3 skyColor)
    Vanilla's sky color, faded towards the fog color as far as VanillaSky.SKY is hidden.
    static float @Nullable []
    sunriseColor(float @Nullable [] color)
    Vanilla's sunrise glow, faded out as far as VanillaSky.SUNRISE is hidden; null skips it.
    static boolean
    unregister(net.minecraft.resources.ResourceLocation id)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Method Details

    • register

      public static Skybox register(net.minecraft.resources.ResourceLocation id, @Nullable @Nullable net.minecraft.resources.ResourceLocation definitionId, @Nullable @Nullable SkyboxDefinition definition)
    • get

      @Nullable public static @Nullable Skybox get(net.minecraft.resources.ResourceLocation id)
    • all

      public static Collection<Skybox> all()
    • unregister

      public static boolean unregister(net.minecraft.resources.ResourceLocation id)
    • beginFrame

      public static void beginFrame(net.minecraft.client.DeltaTracker deltaTracker)
    • endFrame

      public static void endFrame()
    • beginSky

      public static boolean beginSky(org.joml.Matrix4f view, org.joml.Matrix4f projection, float partialTick, net.minecraft.client.Camera camera, Runnable skyFogSetup)
      As vanilla's sky pass starts: keeps the camera and the angles layers can follow. In a dimension without a sky, while a skybox with layers shows, draws them as the whole sky; true if it did, so vanilla's pass is skipped.
    • hidden

      public static float hidden(VanillaSky part)
      How hidden a part of vanilla's sky is this frame, from 0 (drawn as usual) to 1 (not drawn).
    • skyColor

      public static net.minecraft.world.phys.Vec3 skyColor(net.minecraft.world.phys.Vec3 skyColor)
      Vanilla's sky color, faded towards the fog color as far as VanillaSky.SKY is hidden.
    • sunriseColor

      public static float @Nullable [] sunriseColor(float @Nullable [] color)
      Vanilla's sunrise glow, faded out as far as VanillaSky.SUNRISE is hidden; null skips it.
    • fadeCelestial

      public static void fadeCelestial(VanillaSky part)
      Fades the sun or the moon, about to be drawn with the shader color.
    • fadeStars

      public static void fadeStars()
      Fades the stars, about to be drawn with the shader color.
    • beginEndSky

      public static boolean beginEndSky()
      As the End sky starts; true if it's fully hidden, so skipped (its layers drawn instead).
    • endEndSky

      public static void endEndSky()
      After the End sky: both stages of layers.
    • render

      public static void render(SkyLayerStage stage)
      Draws the visible skyboxes' layers of a stage, inside vanilla's sky pass (depth writes already off).
    • reload

      public static void reload(net.minecraft.server.packs.resources.ResourceManager resourceManager)
      After shaders load: finds resource pack skyboxes, then rebuilds every skybox from the new resources.
    • close

      public static void close()