Class ViewportEvent.ComputeFogColor

java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.client.event.ViewportEvent
net.minecraftforge.client.event.ViewportEvent.ComputeFogColor
Enclosing class:
ViewportEvent

public static class ViewportEvent.ComputeFogColor extends ViewportEvent
Fired for customizing the color of the fog visible to the player.

This event is not cancellable, and does not have a result.

This event is fired on the main Forge event bus, only on the logical client.

  • Field Details

    • red

      private float red
    • green

      private float green
    • blue

      private float blue
  • Constructor Details

    • ComputeFogColor

      @Internal public ComputeFogColor(Camera camera, float partialTicks, float red, float green, float blue)
  • Method Details

    • getRed

      public float getRed()
      Returns the red color value of the fog.
      Returns:
      the red color value of the fog
    • setRed

      public void setRed(float red)
      Sets the new red color value of the fog.
      Parameters:
      red - the new red color value
    • getGreen

      public float getGreen()
      Returns the green color value of the fog.
      Returns:
      the green color value of the fog
    • setGreen

      public void setGreen(float green)
      Sets the new green color value of the fog.
      Parameters:
      green - the new blue color value
    • getBlue

      public float getBlue()
      Returns the blue color value of the fog.
      Returns:
      the blue color value of the fog
    • setBlue

      public void setBlue(float blue)
      Sets the new blue color value of the fog.
      Parameters:
      blue - the new blue color value