Package net.minecraftforge.client.event
Class EntityViewRenderEvent.FogDensity
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.client.event.EntityViewRenderEvent
net.minecraftforge.client.event.EntityViewRenderEvent.FogEvent
net.minecraftforge.client.event.EntityViewRenderEvent.FogDensity
- Enclosing class:
- EntityViewRenderEvent
Event that allows any feature to customize the fog density the player sees.
NOTE: In order to make this event have an effect, you must cancel the event
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraftforge.client.event.EntityViewRenderEvent
EntityViewRenderEvent.CameraSetup, EntityViewRenderEvent.FogColors, EntityViewRenderEvent.FogDensity, EntityViewRenderEvent.FOVModifier, EntityViewRenderEvent.RenderFogEvent
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
-
Constructor Summary
ConstructorDescriptionFogDensity
(FogRenderer.FogType type, ActiveRenderInfo info, float partialTicks, float density) -
Method Summary
Methods inherited from class net.minecraftforge.client.event.EntityViewRenderEvent.FogEvent
getType
Methods inherited from class net.minecraftforge.client.event.EntityViewRenderEvent
getInfo, getRenderer, getRenderPartialTicks
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getParentListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
-
Field Details
-
density
private float density
-
-
Constructor Details
-
FogDensity
public FogDensity(FogRenderer.FogType type, ActiveRenderInfo info, float partialTicks, float density)
-
-
Method Details
-
getDensity
public float getDensity() -
setDensity
public void setDensity(float density)
-