Interface IForgeDimensionSpecialEffects

All Known Implementing Classes:
DimensionSpecialEffects, DimensionSpecialEffects.EndEffects, DimensionSpecialEffects.NetherEffects, DimensionSpecialEffects.OverworldEffects

public interface IForgeDimensionSpecialEffects
Extension interface for DimensionSpecialEffects.
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    adjustLightmapColors(ClientLevel level, float partialTicks, float skyDarken, float skyLight, float blockLight, int pixelX, int pixelY, org.joml.Vector3f colors)
    Allows for manipulating the coloring of the lightmap texture.
    default boolean
    renderClouds(ClientLevel level, int ticks, float partialTick, PoseStack poseStack, double camX, double camY, double camZ, org.joml.Matrix4f projectionMatrix)
    Renders the clouds of this dimension.
    default boolean
    renderSky(ClientLevel level, int ticks, float partialTick, PoseStack poseStack, Camera camera, org.joml.Matrix4f projectionMatrix, boolean isFoggy, Runnable setupFog)
    Renders the sky of this dimension.
    default boolean
    renderSnowAndRain(ClientLevel level, int ticks, float partialTick, LightTexture lightTexture, double camX, double camY, double camZ)
    Renders the snow and rain effects of this dimension.
     
    default boolean
    tickRain(ClientLevel level, int ticks, Camera camera)
    Ticks the rain of this dimension.
  • Method Details

    • self

      private DimensionSpecialEffects self()
    • renderClouds

      default boolean renderClouds(ClientLevel level, int ticks, float partialTick, PoseStack poseStack, double camX, double camY, double camZ, org.joml.Matrix4f projectionMatrix)
      Renders the clouds of this dimension.
      Returns:
      true to prevent vanilla cloud rendering
    • renderSky

      default boolean renderSky(ClientLevel level, int ticks, float partialTick, PoseStack poseStack, Camera camera, org.joml.Matrix4f projectionMatrix, boolean isFoggy, Runnable setupFog)
      Renders the sky of this dimension.
      Returns:
      true to prevent vanilla sky rendering
    • renderSnowAndRain

      default boolean renderSnowAndRain(ClientLevel level, int ticks, float partialTick, LightTexture lightTexture, double camX, double camY, double camZ)
      Renders the snow and rain effects of this dimension.
      Returns:
      true to prevent vanilla snow and rain rendering
    • tickRain

      default boolean tickRain(ClientLevel level, int ticks, Camera camera)
      Ticks the rain of this dimension.
      Returns:
      true to prevent vanilla rain ticking
    • adjustLightmapColors

      default void adjustLightmapColors(ClientLevel level, float partialTicks, float skyDarken, float skyLight, float blockLight, int pixelX, int pixelY, org.joml.Vector3f colors)
      Allows for manipulating the coloring of the lightmap texture. Will be called for each 16*16 combination of sky/block light values.
      Parameters:
      level - The current level (client-side).
      partialTicks - Progress between ticks.
      skyDarken - Current darkness of the sky.
      skyLight - Sky light brightness factor.
      blockLight - Block light brightness factor.
      pixelX - X-coordinate of the lightmap texture.
      pixelY - Y-coordinate of the lightmap texture.
      colors - The color values that will be used: [r, g, b].
      See Also: