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
@Deprecated(forRemoval=true,
since="1.18.2")
public static class EntityViewRenderEvent.FogDensity
extends EntityViewRenderEvent.FogEvent
Deprecated, for removal: This API element is subject to removal in a future version.
Use RenderFogEvent. This event will be removed as the other event has better functionality.
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.FieldOfView, EntityViewRenderEvent.FogColors, EntityViewRenderEvent.FogDensity, 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
Modifier and TypeFieldDescriptionprivate float
Deprecated, for removal: This API element is subject to removal in a future version. -
Constructor Summary
ConstructorDescriptionFogDensity
(FogRenderer.FogMode type, Camera camera, float partialTick, float density) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionfloat
Deprecated, for removal: This API element is subject to removal in a future version.void
setDensity
(float density) Deprecated, for removal: This API element is subject to removal in a future version.Methods inherited from class net.minecraftforge.client.event.EntityViewRenderEvent.FogEvent
getMode
Methods inherited from class net.minecraftforge.client.event.EntityViewRenderEvent
getCamera, getPartialTicks, getRenderer
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 densityDeprecated, for removal: This API element is subject to removal in a future version.
-
-
Constructor Details
-
FogDensity
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
getDensity
public float getDensity()Deprecated, for removal: This API element is subject to removal in a future version. -
setDensity
public void setDensity(float density) Deprecated, for removal: This API element is subject to removal in a future version.
-