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 VertexBuffer
static final ResourceLocation
private final VertexBuffer
private static final ResourceLocation
private static final float
private final VertexBuffer
private static final ResourceLocation
private final VertexBuffer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
buildEndSky
(VertexConsumer p_382981_) private void
buildSkyDisc
(VertexConsumer p_382865_, float p_361373_) private void
buildStars
(VertexConsumer p_383173_) void
close()
void
renderDarkDisc
(PoseStack p_360284_) void
private void
renderMoon
(int p_364754_, float p_362497_, MultiBufferSource p_382845_, PoseStack p_362676_) void
renderSkyDisc
(float p_362027_, float p_360898_, float p_362939_) private void
renderStars
(FogParameters p_365253_, float p_361150_, PoseStack p_365236_) private void
renderSun
(float p_362331_, MultiBufferSource p_383061_, PoseStack p_361665_) void
renderSunMoonAndStars
(PoseStack p_363513_, MultiBufferSource.BufferSource p_382843_, float p_362201_, int p_362572_, float p_362569_, float p_363542_, FogParameters p_361918_) void
renderSunriseAndSunset
(PoseStack p_362809_, MultiBufferSource.BufferSource p_383216_, float p_364108_, int p_361766_)
-
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 p_362027_, float p_360898_, float p_362939_) -
renderDarkDisc
-
renderSunMoonAndStars
public void renderSunMoonAndStars(PoseStack p_363513_, MultiBufferSource.BufferSource p_382843_, float p_362201_, int p_362572_, float p_362569_, float p_363542_, FogParameters p_361918_) -
renderSun
-
renderMoon
private void renderMoon(int p_364754_, float p_362497_, MultiBufferSource p_382845_, PoseStack p_362676_) -
renderStars
-
renderSunriseAndSunset
public void renderSunriseAndSunset(PoseStack p_362809_, MultiBufferSource.BufferSource p_383216_, float p_364108_, int p_361766_) -
buildEndSky
-
renderEndSky
public void renderEndSky() -
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-