类 ViewportEvent.ComputeFogColor
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.client.event.ViewportEvent
net.minecraftforge.client.event.ViewportEvent.ComputeFogColor
- 封闭类:
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.
-
嵌套类概要
从类继承的嵌套类/接口 net.minecraftforge.client.event.ViewportEvent
ViewportEvent.ComputeCameraAngles, ViewportEvent.ComputeFogColor, ViewportEvent.ComputeFov, ViewportEvent.RenderFog
从类继承的嵌套类/接口 net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明float
getBlue()
返回 the blue color value of the fog。float
getGreen()
返回 the green color value of the fog。float
getRed()
返回 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.从类继承的方法 net.minecraftforge.client.event.ViewportEvent
getCamera, getPartialTick, getRenderer
从类继承的方法 net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
字段详细资料
-
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
-