Package net.minecraft.client.renderer
Class WeatherEffectRenderer
java.lang.Object
net.minecraft.client.renderer.WeatherEffectRenderer
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final float[]private final float[]private static final intprivate static final intprivate static final ResourceLocationprivate static final intprivate static final intprivate intprivate static final ResourceLocation -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateRainColumnInstance(RandomSource pRandom, int pTicks, int pX, int pBottomY, int pTopY, int pZ, int pLightCoords, float pPartialTick) createSnowColumnInstance(RandomSource pRandom, int pTicks, int pX, int pBottomY, int pTopY, int pZ, int pLightCoords, float pPartialTick) voidextractRenderState(Level pLevel, int pTicks, float pPartialTick, Vec3 pCameraPosition, WeatherRenderState pReusedState) private Biome.PrecipitationgetPrecipitationAt(Level pLevel, BlockPos pPos) voidrender(MultiBufferSource pBufferSource, Vec3 pCameraPosition, WeatherRenderState pRenderState) Deprecated.voidrender(MultiBufferSource pBufferSource, Vec3 pCameraPosition, WeatherRenderState pRenderState, LevelRenderState levelRenderState) private voidrenderInstances(VertexConsumer pBuffer, List<WeatherEffectRenderer.ColumnInstance> pColumnInstances, Vec3 pCameraPosition, float pAmount, int pRadius, float pRainLevel) voidtickRainParticles(ClientLevel pLevel, Camera pCamera, int pTicks, ParticleStatus pParticleStatus)
-
Field Details
-
RAIN_RADIUS
private static final int RAIN_RADIUS- See Also:
-
RAIN_DIAMETER
private static final int RAIN_DIAMETER- See Also:
-
RAIN_LOCATION
-
SNOW_LOCATION
-
RAIN_TABLE_SIZE
private static final int RAIN_TABLE_SIZE- See Also:
-
HALF_RAIN_TABLE_SIZE
private static final int HALF_RAIN_TABLE_SIZE- See Also:
-
rainSoundTime
private int rainSoundTime -
columnSizeX
private final float[] columnSizeX -
columnSizeZ
private final float[] columnSizeZ
-
-
Constructor Details
-
WeatherEffectRenderer
public WeatherEffectRenderer()
-
-
Method Details
-
extractRenderState
public void extractRenderState(Level pLevel, int pTicks, float pPartialTick, Vec3 pCameraPosition, WeatherRenderState pReusedState) -
render
@Deprecated public void render(MultiBufferSource pBufferSource, Vec3 pCameraPosition, WeatherRenderState pRenderState) Deprecated. -
render
public void render(MultiBufferSource pBufferSource, Vec3 pCameraPosition, WeatherRenderState pRenderState, @Nullable LevelRenderState levelRenderState) -
createRainColumnInstance
private WeatherEffectRenderer.ColumnInstance createRainColumnInstance(RandomSource pRandom, int pTicks, int pX, int pBottomY, int pTopY, int pZ, int pLightCoords, float pPartialTick) -
createSnowColumnInstance
private WeatherEffectRenderer.ColumnInstance createSnowColumnInstance(RandomSource pRandom, int pTicks, int pX, int pBottomY, int pTopY, int pZ, int pLightCoords, float pPartialTick) -
renderInstances
private void renderInstances(VertexConsumer pBuffer, List<WeatherEffectRenderer.ColumnInstance> pColumnInstances, Vec3 pCameraPosition, float pAmount, int pRadius, float pRainLevel) -
tickRainParticles
public void tickRainParticles(ClientLevel pLevel, Camera pCamera, int pTicks, ParticleStatus pParticleStatus) -
getPrecipitationAt
-
render(MultiBufferSource, Vec3, WeatherRenderState, net.minecraft.client.renderer.state.LevelRenderState)instead