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 buffer) private voidbuildSkyDisc(VertexConsumer buffer, float y) private voidbuildStars(VertexConsumer buffer) voidclose()voidrenderDarkDisc(PoseStack poseStack) voidprivate voidrenderMoon(int phase, float alpha, MultiBufferSource bufferSource, PoseStack poseStack) voidrenderSkyDisc(float red, float green, float blue) private voidrenderStars(FogParameters fog, float starBrightness, PoseStack poseStack) private voidrenderSun(float alpha, MultiBufferSource bufferSource, PoseStack poseStack) voidrenderSunMoonAndStars(PoseStack poseStack, MultiBufferSource.BufferSource bufferSource, float timeOfDay, int moonPhase, float rainLevel, float starBrightness, FogParameters fog) voidrenderSunriseAndSunset(PoseStack poseStack, MultiBufferSource.BufferSource bufferSource, float sunAngle, int color)
-
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 red, float green, float blue) -
renderDarkDisc
-
renderSunMoonAndStars
public void renderSunMoonAndStars(PoseStack poseStack, MultiBufferSource.BufferSource bufferSource, float timeOfDay, int moonPhase, float rainLevel, float starBrightness, FogParameters fog) -
renderSun
-
renderMoon
private void renderMoon(int phase, float alpha, MultiBufferSource bufferSource, PoseStack poseStack) -
renderStars
-
renderSunriseAndSunset
public void renderSunriseAndSunset(PoseStack poseStack, MultiBufferSource.BufferSource bufferSource, float sunAngle, int color) -
buildEndSky
-
renderEndSky
public void renderEndSky() -
close
public void close()- Specified by:
closein interfaceAutoCloseable
-