net.minecraft.client.render

public class SkyRendering

implements AutoCloseable

net.minecraft.client.renderer.SkyRenderer
net.minecraft.client.renderer.SkyRenderer
net.minecraft.class_9975
net.minecraft.client.render.SkyRendering

Field summary

Modifier and TypeField
private static final Identifier
SUN_SPRITE
SUN_SPRITE
field_63578
SUN_TEXTURE
private static final Identifier
END_FLASH_SPRITE
END_FLASH_SPRITE
field_63579
END_FLASH_TEXTURE
private static final Identifier
END_SKY_LOCATION
END_SKY_LOCATION
field_53143
END_SKY_TEXTURE
private static final float
SKY_DISC_RADIUS
SKY_DISC_RADIUS
field_53144
field_53144
private static final int
SKY_VERTICES
SKY_VERTICES
field_57932
field_57932
private static final int
STAR_COUNT
STAR_COUNT
field_57933
field_57933
private static final float
SUN_SIZE
SUN_SIZE
field_62950
field_62950
private static final float
SUN_HEIGHT
SUN_HEIGHT
field_62951
field_62951
private static final float
MOON_SIZE
MOON_SIZE
field_62952
field_62952
private static final float
MOON_HEIGHT
MOON_HEIGHT
field_62953
field_62953
private static final int
SUNRISE_STEPS
SUNRISE_STEPS
field_62954
field_62954
private static final int
END_SKY_QUAD_COUNT
END_SKY_QUAD_COUNT
field_57934
field_57934
private static final float
END_FLASH_HEIGHT
END_FLASH_HEIGHT
field_62955
field_62955
private static final float
END_FLASH_SCALE
END_FLASH_SCALE
field_62956
field_62956
private final SpriteAtlasTexture
celestialsAtlas
celestialsAtlas
field_63580
celestialAtlasTexture
private final GpuBuffer
starBuffer
starBuffer
field_53145
starVertexBuffer
private final GpuBuffer
topSkyBuffer
topSkyBuffer
field_53146
topSkyVertexBuffer
private final GpuBuffer
bottomSkyBuffer
bottomSkyBuffer
field_53147
bottomSkyVertexBuffer
private final GpuBuffer
endSkyBuffer
endSkyBuffer
field_55153
endSkyVertexBuffer
private final GpuBuffer
sunBuffer
sunBuffer
field_62957
sunVertexBuffer
private final GpuBuffer
moonBuffer
moonBuffer
field_62958
moonPhaseVertexBuffer
private final GpuBuffer
sunriseBuffer
sunriseBuffer
field_62959
sunRiseVertexBuffer
private final GpuBuffer
endFlashBuffer
endFlashBuffer
field_62960
endFlashVertexBuffer
private final RenderSystem$ShapeIndexBuffer
quadIndices
quadIndices
field_62961
indexBuffer2
private final AbstractTexture
endSkyTexture
endSkyTexture
field_62948
endSkyTexture
private int
starIndexCount
starIndexCount
field_58198
starIndexCount

Constructor summary

ModifierConstructor
public (TextureManager textureManager, AtlasManager atlasManager)

Method summary

Modifier and TypeMethod
private AbstractTexture
getTexture(TextureManager textureManager, Identifier location)
getTexture(TextureManager textureManager, Identifier location)
method_74757(class_1060 arg0, class_2960 arg1)
bindTexture(TextureManager textureManager, Identifier texture)
private GpuBuffer
buildSunriseFan()
buildSunriseFan()
method_74758()
createSunRise()
private static GpuBuffer
buildSunQuad(TextureAtlas atlas)
buildSunQuad(TextureAtlas atlas)
method_74759(class_1059 arg0)
createSun(SpriteAtlasTexture atlas)
private static GpuBuffer
buildEndFlashQuad(TextureAtlas atlas)
buildEndFlashQuad(TextureAtlas atlas)
method_74761(class_1059 arg0)
createEndFlash(SpriteAtlasTexture atlas)
private static GpuBuffer
buildCelestialQuad(String name, TextureAtlasSprite sprite)
buildCelestialQuad(String name, TextureAtlasSprite sprite)
method_75418(String arg0, class_1058 arg1)
createQuadVertexBuffer(String description, Sprite sprite)
private static GpuBuffer
buildMoonPhases(TextureAtlas atlas)
buildMoonPhases(TextureAtlas atlas)
method_74760(class_1059 arg0)
createMoonPhases(SpriteAtlasTexture atlas)
private GpuBuffer
buildStars()
buildStars()
method_65233()
createStars()
private void
buildSkyDisc(VertexConsumer builder, float yy)
buildSkyDisc(VertexConsumer builder, float yy)
method_62309(class_4588 arg0, float arg1)
createSky(VertexConsumer vertexConsumer, float height)
private static GpuBuffer
buildEndSky()
buildEndSky()
method_65234()
createEndSky()
public void
renderSkyDisc(int skyColor)
renderSkyDisc(int skyColor)
method_62302(int arg0)
renderTopSky(int arg0)
public void
extractRenderState(ClientLevel level, float partialTicks, Camera camera, SkyRenderState state)
extractRenderState(ClientLevel level, float partialTicks, Camera camera, SkyRenderState state)
method_74926(class_638 arg0, float arg1, class_4184 arg2, class_12076 arg3)
updateRenderState(ClientWorld world, float tickProgress, Camera camera, SkyRenderState state)
private boolean
shouldRenderDarkDisc(float deltaPartialTick, ClientLevel level)
shouldRenderDarkDisc(float deltaPartialTick, ClientLevel level)
method_74925(float arg0, class_638 arg1)
isSkyDark(float tickProgress, ClientWorld world)
public void
renderDarkDisc()
renderDarkDisc()
method_62305()
renderSkyDark()
public void
renderSunMoonAndStars(PoseStack poseStack, float sunAngle, float moonAngle, float starAngle, MoonPhase moonPhase, float rainBrightness, float starBrightness)
renderSunMoonAndStars(PoseStack poseStack, float sunAngle, float moonAngle, float starAngle, MoonPhase moonPhase, float rainBrightness, float starBrightness)
method_62307(class_4587 arg0, float arg1, float arg2, float arg3, class_12131 arg4, float arg5, float arg6)
renderCelestialBodies(MatrixStack matrices, float sunAngle, float moonAngle, float starAngle, MoonPhase moonPhase, float alpha, float starBrightness)
private void
renderSun(float rainBrightness, PoseStack poseStack)
renderSun(float rainBrightness, PoseStack poseStack)
method_62303(float arg0, class_4587 arg1)
renderSun(float alpha, MatrixStack matrices)
private void
renderMoon(MoonPhase moonPhase, float rainBrightness, PoseStack poseStack)
renderMoon(MoonPhase moonPhase, float rainBrightness, PoseStack poseStack)
method_62304(class_12131 arg0, float arg1, class_4587 arg2)
renderMoon(MoonPhase moonPhase, float alpha, MatrixStack matrices)
private void
renderStars(float starBrightness, PoseStack poseStack)
renderStars(float starBrightness, PoseStack poseStack)
method_62310(float arg0, class_4587 arg1)
renderStars(float brightness, MatrixStack matrices)
public void
renderSunriseAndSunset(PoseStack poseStack, float sunAngle, int sunriseAndSunsetColor)
renderSunriseAndSunset(PoseStack poseStack, float sunAngle, int sunriseAndSunsetColor)
method_62306(class_4587 arg0, float arg1, int arg2)
renderGlowingSky(MatrixStack matrices, float solarAngle, int color)
public void
renderEndSky()
renderEndSky()
method_62312()
renderEndSky()
public void
renderEndFlash(PoseStack poseStack, float intensity, float xAngle, float yAngle)
renderEndFlash(PoseStack poseStack, float intensity, float xAngle, float yAngle)
method_73244(class_4587 arg0, float arg1, float arg2, float arg3)
drawEndLightFlash(MatrixStack matrices, float intensity, float pitch, float yaw)
public void
close()
close()