net.minecraft.client.render

public class SkyRenderer

implements AutoCloseable

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

Field summary

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

Constructor summary

ModifierConstructor
public (TextureManager textureManager, AtlasManager atlasManager, Framebuffer renderTarget)

Method summary

Modifier and TypeMethod
private AbstractTexture
getTexture(TextureManager textureManager, Identifier location)
method_74757(class_1060 arg0, class_2960 arg1)
bindTexture(TextureManager textureManager, Identifier texture)
private GpuBuffer
buildSunriseFan()
method_74758()
createSunRise()
private static GpuBuffer
buildSunQuad(TextureAtlas atlas)
method_74759(class_1059 arg0)
createSun(SpriteAtlasTexture atlas)
private static GpuBuffer
buildEndFlashQuad(TextureAtlas atlas)
method_74761(class_1059 arg0)
createEndFlash(SpriteAtlasTexture atlas)
private static GpuBuffer
buildCelestialQuad(String name, TextureAtlasSprite sprite)
method_75418(String arg0, class_1058 arg1)
createQuadVertexBuffer(String description, Sprite sprite)
private static GpuBuffer
buildMoonPhases(TextureAtlas atlas)
method_74760(class_1059 arg0)
createMoonPhases(SpriteAtlasTexture atlas)
private GpuBuffer
buildStars()
method_65233()
createStars()
private void
buildSkyDisc(VertexConsumer builder, float yy)
method_62309(class_4588 arg0, float arg1)
createSky(VertexConsumer vertexConsumer, float height)
private static GpuBuffer
buildEndSky()
method_65234()
createEndSky()
public void
renderSkyDisc(int skyColor)
method_62302(int arg0)
renderTopSky(int arg0)
public void
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)
method_74925(float arg0, class_638 arg1)
isSkyDark(float tickProgress, ClientWorld world)
public void
renderDarkDisc()
method_62305()
renderSkyDark()
public void
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)
method_62303(float arg0, class_4587 arg1)
renderSun(float alpha, MatrixStack matrices)
private void
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)
method_62310(float arg0, class_4587 arg1)
renderStars(float brightness, MatrixStack matrices)
public void
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()
method_62312()
renderEndSky()
public void
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()
private static String
lambda$renderEndFlash$0()
method_74762()
method_74762()
private static String
lambda$renderEndSky$0()
method_71316()
method_71316()
private static String
lambda$renderSunriseAndSunset$0()
method_74763()
method_74763()
private static String
lambda$renderStars$0()
method_71317()
method_71317()
private static String
lambda$renderMoon$0()
method_74764()
method_74764()
private static String
lambda$renderSun$0()
method_74765()
method_74765()
private static String
lambda$renderDarkDisc$0()
method_71318()
method_71318()
private static String
lambda$renderSkyDisc$0()
method_71319()
method_71319()
private static String
lambda$buildEndSky$0()
method_68499()
method_68499()
private static String
lambda$buildStars$0()
method_68500()
method_68500()
private static String
lambda$buildMoonPhases$0()
method_74767()
method_74767()
private static String
lambda$buildCelestialQuad$0(String arg0)
method_75417(String arg0)
method_75417(String arg0)
private static String
lambda$buildSunriseFan$0()
method_74769()
method_74769()
private static String
lambda$new$1()
method_75419()
method_75419()
private static String
lambda$new$0()
method_75420()
method_75420()