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 pTextureManager, Identifier pTexture)
    • buildSunriseFan

      private GpuBuffer buildSunriseFan()
    • buildSunQuad

      private static GpuBuffer buildSunQuad(TextureAtlas pAtlas)
    • buildEndFlashQuad

      private static GpuBuffer buildEndFlashQuad(TextureAtlas pAtlas)
    • buildCelestialQuad

      private static GpuBuffer buildCelestialQuad(String pName, TextureAtlasSprite pAtlas)
    • buildMoonPhases

      private static GpuBuffer buildMoonPhases(TextureAtlas pAtlas)
    • buildStars

      private GpuBuffer buildStars()
    • buildSkyDisc

      private void buildSkyDisc(VertexConsumer pBuffer, float pY)
    • buildEndSky

      private static GpuBuffer buildEndSky()
    • renderSkyDisc

      public void renderSkyDisc(int pColor)
    • extractRenderState

      public void extractRenderState(ClientLevel pLevel, float pPartialTick, Camera pCamera, SkyRenderState pReusedState)
    • shouldRenderDarkDisc

      private boolean shouldRenderDarkDisc(float pPartialTick, ClientLevel pLevel)
    • renderDarkDisc

      public void renderDarkDisc()
    • renderSunMoonAndStars

      public void renderSunMoonAndStars(PoseStack pPoseStack, float pSunAngle, float pMoonAngle, float pStarAngle, MoonPhase pMoonPhase, float pRainBrightness, float pStarBrightness)
    • renderSun

      private void renderSun(float pRainBrightness, PoseStack pPoseStack)
    • renderMoon

      private void renderMoon(MoonPhase pMoonPhase, float pRainBrightness, PoseStack pPoseStack)
    • renderStars

      private void renderStars(float pStarBrightness, PoseStack pPoseStack)
    • renderSunriseAndSunset

      public void renderSunriseAndSunset(PoseStack pPoseStack, float pSunAngle, int pColor)
    • renderEndSky

      public void renderEndSky()
    • renderEndFlash

      public void renderEndFlash(PoseStack pPoseStack, float pIntensity, float pXAngle, float pYAngle)
    • close

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