Package net.minecraftforge.client.event
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
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraftforge.client.event.ViewportEvent
ViewportEvent.ComputeCameraAngles, ViewportEvent.ComputeFogColor, ViewportEvent.ComputeFov, ViewportEvent.RenderFog
Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionComputeFogColor
(Camera camera, float partialTicks, float red, float green, float blue) -
Method Summary
Modifier and TypeMethodDescriptionfloat
getBlue()
Returns the blue color value of the fog.float
getGreen()
Returns the green color value of the fog.float
getRed()
Returns the red color value of the fog.void
setBlue
(float blue) Sets the new blue color value of the fog.void
setGreen
(float green) Sets the new green color value of the fog.void
setRed
(float red) Sets the new red color value of the fog.Methods inherited from class net.minecraftforge.client.event.ViewportEvent
getCamera, getPartialTick, getRenderer
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
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
-