类 ViewportEvent.ComputeFogColor

java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.client.event.ViewportEvent
net.minecraftforge.client.event.ViewportEvent.ComputeFogColor
封闭类:
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.

  • 字段详细资料

    • red

      private float red
    • green

      private float green
    • blue

      private float blue
  • 构造器详细资料

    • ComputeFogColor

      @Internal public ComputeFogColor(Camera camera, float partialTicks, float red, float green, float blue)
  • 方法详细资料

    • getRed

      public float getRed()
      返回 the red color value of the fog。
      返回:
      the red color value of the fog
    • setRed

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

      public float getGreen()
      返回 the green color value of the fog。
      返回:
      the green color value of the fog
    • setGreen

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

      public float getBlue()
      返回 the blue color value of the fog。
      返回:
      the blue color value of the fog
    • setBlue

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