Package net.minecraft.client.renderer
Class SkyRenderer
java.lang.Object
net.minecraft.client.renderer.SkyRenderer
- All Implemented Interfaces:
AutoCloseable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final VertexBufferstatic final ResourceLocationprivate final VertexBufferprivate static final ResourceLocationprivate static final floatprivate final VertexBufferprivate static final ResourceLocationprivate final VertexBuffer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidbuildEndSky(VertexConsumer pBuffer) private voidbuildSkyDisc(VertexConsumer pBuffer, float pY) private voidbuildStars(VertexConsumer pBuffer) voidclose()voidrenderDarkDisc(PoseStack pPoseStack) voidprivate voidrenderMoon(int pPhase, float pAlpha, MultiBufferSource pBufferSource, PoseStack pPoseStack) voidrenderSkyDisc(float pRed, float pGreen, float pBlue) private voidrenderStars(FogParameters pFog, float pStarBrightness, PoseStack pPoseStack) private voidrenderSun(float pAlpha, MultiBufferSource pBufferSource, PoseStack pPoseStack) voidrenderSunMoonAndStars(PoseStack pPoseStack, MultiBufferSource.BufferSource pBufferSource, float pTimeOfDay, int pMoonPhase, float pRainLevel, float pStarBrightness, FogParameters pFog) voidrenderSunriseAndSunset(PoseStack pPoseStack, MultiBufferSource.BufferSource pBufferSource, float pSunAngle, int pColor)
-
Field Details
-
SUN_LOCATION
-
MOON_LOCATION
-
END_SKY_LOCATION
-
SKY_DISC_RADIUS
private static final float SKY_DISC_RADIUS- See Also:
-
starBuffer
-
topSkyBuffer
-
bottomSkyBuffer
-
endSkyBuffer
-
-
Constructor Details
-
SkyRenderer
public SkyRenderer()
-
-
Method Details
-
buildStars
-
buildSkyDisc
-
renderSkyDisc
public void renderSkyDisc(float pRed, float pGreen, float pBlue) -
renderDarkDisc
-
renderSunMoonAndStars
public void renderSunMoonAndStars(PoseStack pPoseStack, MultiBufferSource.BufferSource pBufferSource, float pTimeOfDay, int pMoonPhase, float pRainLevel, float pStarBrightness, FogParameters pFog) -
renderSun
-
renderMoon
private void renderMoon(int pPhase, float pAlpha, MultiBufferSource pBufferSource, PoseStack pPoseStack) -
renderStars
-
renderSunriseAndSunset
public void renderSunriseAndSunset(PoseStack pPoseStack, MultiBufferSource.BufferSource pBufferSource, float pSunAngle, int pColor) -
buildEndSky
-
renderEndSky
public void renderEndSky() -
close
public void close()- Specified by:
closein interfaceAutoCloseable
-