Class EntityViewRenderEvent.FogDensity

java.lang.Object
net.minecraftforge.eventbus.api.Event
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
  • Field Details

    • density

      private float density
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Constructor Details

    • FogDensity

      public FogDensity(FogRenderer.FogMode type, Camera camera, float partialTick, float density)
      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.