Class SkyRenderer

java.lang.Object
net.minecraft.client.renderer.SkyRenderer
All Implemented Interfaces:
AutoCloseable

public class SkyRenderer extends Object implements AutoCloseable
  • Field Details

  • Constructor Details

  • Method Details

    • getTexture

      private AbstractTexture getTexture(TextureManager textureManager, Identifier location)
    • buildSunriseFan

      private GpuBuffer buildSunriseFan()
    • buildSunQuad

      private static GpuBuffer buildSunQuad(TextureAtlas atlas)
    • buildEndFlashQuad

      private static GpuBuffer buildEndFlashQuad(TextureAtlas atlas)
    • buildCelestialQuad

      private static GpuBuffer buildCelestialQuad(String name, TextureAtlasSprite sprite)
    • buildMoonPhases

      private static GpuBuffer buildMoonPhases(TextureAtlas atlas)
    • buildStars

      private GpuBuffer buildStars()
    • buildSkyDisc

      private void buildSkyDisc(VertexConsumer builder, float yy)
    • buildEndSky

      private static GpuBuffer buildEndSky()
    • renderSkyDisc

      public void renderSkyDisc(int skyColor)
    • extractRenderState

      public void extractRenderState(ClientLevel level, float partialTicks, Camera camera, SkyRenderState state)
    • shouldRenderDarkDisc

      private boolean shouldRenderDarkDisc(float deltaPartialTick, ClientLevel level)
    • renderDarkDisc

      public void renderDarkDisc()
    • renderSunMoonAndStars

      public void renderSunMoonAndStars(PoseStack poseStack, float sunAngle, float moonAngle, float starAngle, MoonPhase moonPhase, float rainBrightness, float starBrightness)
    • renderSun

      private void renderSun(float rainBrightness, PoseStack poseStack)
    • renderMoon

      private void renderMoon(MoonPhase moonPhase, float rainBrightness, PoseStack poseStack)
    • renderStars

      private void renderStars(float starBrightness, PoseStack poseStack)
    • renderSunriseAndSunset

      public void renderSunriseAndSunset(PoseStack poseStack, float sunAngle, int sunriseAndSunsetColor)
    • renderEndSky

      public void renderEndSky()
    • renderEndFlash

      public void renderEndFlash(PoseStack poseStack, float intensity, float xAngle, float yAngle)
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable