net.minecraft.client.render

public class WeatherRenderer

implements AutoCloseable

net.minecraft.client.renderer.WeatherEffectRenderer
net.minecraft.class_9976
net.minecraft.client.render.WeatherRenderer

Field summary

Modifier and TypeField
private static final Identifier
RAIN_LOCATION
field_53150
RAIN_TEXTURE
private static final Identifier
SNOW_LOCATION
field_53151
SNOW_TEXTURE
private static final int
RAIN_TABLE_SIZE
field_53152
NORMAL_TABLE_DIMENSION
private static final int
HALF_RAIN_TABLE_SIZE
field_53153
NORMAL_TABLE_BIAS
private static final int
INDICES_PER_COLUMN
field_1_1035
INDICES_PER_PIECE
private final float[]
columnSizeX
field_53155
NORMAL_LINE_DX
private final float[]
columnSizeZ
field_53156
NORMAL_LINE_DZ
private final GameRenderer
gameRenderer
field_1_8175
gameRenderer
private final TextureManager
textureManager
field_1_8180
textureManager
private AbstractTexture
rainTexture
field_1_8178
rainTexture
private AbstractTexture
snowTexture
field_1_8179
snowTexture
private GpuBuffer
vertexBuffer
field_1_5784
vertexBuffer
private DrawMode
primitiveTopology
field_1_8177
drawMode
private int
indexCount
field_1_8176
indexCount

Constructor summary

ModifierConstructor
public ()

Method summary

Modifier and TypeMethod
public void
extractRenderState(ClientLevel level, float partialTicks, Vec3 cameraPos, WeatherRenderState renderState)
method_62315(class_638 arg0, float arg1, class_243 arg2, class_12077 arg3)
buildPrecipitationPieces(ClientWorld world, float tickProgress, Vec3d cameraPos, WeatherRenderState state)
private void
renderWeather(RenderPass renderPass, AbstractTexture texture, int startColumn, int columnCount)
method_1_1041(class_1_1227 arg0, class_1044 arg1, int arg2, int arg3)
issueDraw(RenderPass renderPass, AbstractTexture texture, int index, int count)
private void
uploadVertexBuffer(ByteBuffer buffer)
method_1_4992(ByteBuffer arg0)
upload(ByteBuffer buffer)
public void
prepare(Vec3 cameraPos, WeatherRenderState renderState)
method_1_7458(class_243 arg0, class_12077 arg1)
prepare(Vec3d cameraPos, WeatherRenderState state)
public void
render(WeatherRenderState renderState, RenderPass renderPass)
method_1_7459(class_12077 arg0, class_1_1227 arg1)
draw(WeatherRenderState state, RenderPass renderPass)
public void
renderOit(OitStage stage, WeatherRenderState renderState, RenderPass renderPass)
method_1_7461(class_1_1153 arg0, class_12077 arg1, class_1_1227 arg2)
drawOit(OitStage oitStage, WeatherRenderState state, RenderPass renderPass)
private void
render(WeatherRenderState renderState, RenderPass renderPass, RenderPipeline renderPipeline)
method_1_7460(class_12077 arg0, class_1_1227 arg1, class_1_1257 arg2)
draw(WeatherRenderState state, RenderPass renderPass, RenderPipeline pipeline)
private WeatherRenderer$Piece
createRainColumnInstance(RandomSource random, long ticks, int x, int bottomY, int topY, int z, int lightCoords, float partialTicks)
method_62314(class_5819 arg0, long arg1, int arg2, int arg3, int arg4, int arg5, int arg6, float arg7)
createRainPiece(Random random, long time, int x, int yMin, int yMax, int z, int light, float tickProgress)
private WeatherRenderer$Piece
createSnowColumnInstance(RandomSource random, long ticks, int x, int bottomY, int topY, int z, int lightCoords, float partialTicks)
method_62321(class_5819 arg0, long arg1, int arg2, int arg3, int arg4, int arg5, int arg6, float arg7)
createSnowPiece(Random random, long time, int x, int yMin, int yMax, int z, int light, float tickProgress)
private void
prepareInstances(VertexConsumer builder, List<WeatherEffectRenderer$ColumnInstance> columns, Vec3 cameraPos, float maxAlpha, int radius, float intensity)
method_62318(class_4588 arg0, List<class_9976$class_9977> arg1, class_243 arg2, float arg3, int arg4, float arg5)
renderPieces(VertexConsumer vertexConsumer, List<WeatherRenderer$Piece> pieces, Vec3d pos, float intensity, int range, float gradient)
public void
close()
private static String
lambda$render$0()
method_1_1039()
method_1_1039()
private static String
lambda$uploadVertexBuffer$0()
method_1_4991()
method_1_4991()