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

    • SkyRenderer

      public SkyRenderer()
  • Method Details

    • initTextures

      protected void initTextures()
    • getTexture

      private AbstractTexture getTexture(ResourceLocation location)
    • buildSunriseFan

      private GpuBuffer buildSunriseFan()
    • buildSunQuad

      private GpuBuffer buildSunQuad()
    • buildMoonPhases

      private GpuBuffer buildMoonPhases()
    • buildStars

      private GpuBuffer buildStars()
    • buildSkyDisc

      private void buildSkyDisc(VertexConsumer buffer, float y)
    • buildEndSky

      private static GpuBuffer buildEndSky()
    • buildEndFlashQuad

      private GpuBuffer buildEndFlashQuad()
    • renderSkyDisc

      public void renderSkyDisc(float red, float green, float blue)
    • extractRenderState

      public void extractRenderState(ClientLevel level, float partialTick, Vec3 cameraPosition, SkyRenderState reusedState)
    • shouldRenderDarkDisc

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

      public void renderDarkDisc()
    • renderSunMoonAndStars

      public void renderSunMoonAndStars(PoseStack poseStack, float timeOfDay, int moonPhase, float rainLevel, float starBrightness)
    • renderSun

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

      private void renderMoon(int moonPhase, float rainLevel, PoseStack poseStack)
    • renderStars

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

      public void renderSunriseAndSunset(PoseStack poseStack, float sunAngle, int color)
    • 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