Class BackgroundRenderer

java.lang.Object
net.minecraft.client.render.BackgroundRenderer

@Environment(CLIENT) public class BackgroundRenderer extends Object
Mappings:
Namespace Name
named net/minecraft/client/render/BackgroundRenderer
intermediary net/minecraft/class_758
official gkz
  • Field Details

    • WATER_FOG_LENGTH

      private static final int WATER_FOG_LENGTH
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named WATER_FOG_LENGTH Lnet/minecraft/client/render/BackgroundRenderer;WATER_FOG_LENGTH:I
      intermediary field_32685 Lnet/minecraft/class_758;field_32685:I
      official b Lgkz;b:I
    • FOG_MODIFIERS

      private static final List<BackgroundRenderer.StatusEffectFogModifier> FOG_MODIFIERS
      Mappings:
      Namespace Name Mixin selector
      named FOG_MODIFIERS Lnet/minecraft/client/render/BackgroundRenderer;FOG_MODIFIERS:Ljava/util/List;
      intermediary field_38338 Lnet/minecraft/class_758;field_38338:Ljava/util/List;
      official c Lgkz;c:Ljava/util/List;
    • WATER_FOG_CHANGE_DURATION

      public static final float WATER_FOG_CHANGE_DURATION
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named WATER_FOG_CHANGE_DURATION Lnet/minecraft/client/render/BackgroundRenderer;WATER_FOG_CHANGE_DURATION:F
      intermediary field_32684 Lnet/minecraft/class_758;field_32684:F
      official a Lgkz;a:F
    • waterFogColor

      private static int waterFogColor
      Mappings:
      Namespace Name Mixin selector
      named waterFogColor Lnet/minecraft/client/render/BackgroundRenderer;waterFogColor:I
      intermediary field_4031 Lnet/minecraft/class_758;field_4031:I
      official d Lgkz;d:I
    • nextWaterFogColor

      private static int nextWaterFogColor
      Mappings:
      Namespace Name Mixin selector
      named nextWaterFogColor Lnet/minecraft/client/render/BackgroundRenderer;nextWaterFogColor:I
      intermediary field_4041 Lnet/minecraft/class_758;field_4041:I
      official e Lgkz;e:I
    • lastWaterFogColorUpdateTime

      private static long lastWaterFogColorUpdateTime
      Mappings:
      Namespace Name Mixin selector
      named lastWaterFogColorUpdateTime Lnet/minecraft/client/render/BackgroundRenderer;lastWaterFogColorUpdateTime:J
      intermediary field_4042 Lnet/minecraft/class_758;field_4042:J
      official f Lgkz;f:J
    • fogEnabled

      private static boolean fogEnabled
      Mappings:
      Namespace Name Mixin selector
      named fogEnabled Lnet/minecraft/client/render/BackgroundRenderer;fogEnabled:Z
      intermediary field_54018 Lnet/minecraft/class_758;field_54018:Z
      official g Lgkz;g:Z
  • Constructor Details

    • BackgroundRenderer

      public BackgroundRenderer()
  • Method Details

    • getFogColor

      public static Vector4f getFogColor(Camera camera, float tickDelta, ClientWorld world, int clampedViewDistance, float skyDarkness)
      Mappings:
      Namespace Name Mixin selector
      named getFogColor Lnet/minecraft/client/render/BackgroundRenderer;getFogColor(Lnet/minecraft/client/render/Camera;FLnet/minecraft/client/world/ClientWorld;IF)Lorg/joml/Vector4f;
      intermediary method_62185 Lnet/minecraft/class_758;method_62185(Lnet/minecraft/class_4184;FLnet/minecraft/class_638;IF)Lorg/joml/Vector4f;
      official a Lgkz;a(Lflo;FLgfj;IF)Lorg/joml/Vector4f;
    • toggleFog

      public static boolean toggleFog()
      Mappings:
      Namespace Name Mixin selector
      named toggleFog Lnet/minecraft/client/render/BackgroundRenderer;toggleFog()Z
      intermediary method_63521 Lnet/minecraft/class_758;method_63521()Z
      official a Lgkz;a()Z
    • getFogModifier

      @Nullable private static @Nullable BackgroundRenderer.StatusEffectFogModifier getFogModifier(Entity entity, float tickDelta)
      Mappings:
      Namespace Name Mixin selector
      named getFogModifier Lnet/minecraft/client/render/BackgroundRenderer;getFogModifier(Lnet/minecraft/entity/Entity;F)Lnet/minecraft/client/render/BackgroundRenderer$StatusEffectFogModifier;
      intermediary method_42588 Lnet/minecraft/class_758;method_42588(Lnet/minecraft/class_1297;F)Lnet/minecraft/class_758$class_7286;
      official a Lgkz;a(Lbvj;F)Lgkz$e;
    • applyFog

      public static Fog applyFog(Camera camera, BackgroundRenderer.FogType fogType, Vector4f color, float viewDistance, boolean thickenFog, float tickDelta)
      Mappings:
      Namespace Name Mixin selector
      named applyFog Lnet/minecraft/client/render/BackgroundRenderer;applyFog(Lnet/minecraft/client/render/Camera;Lnet/minecraft/client/render/BackgroundRenderer$FogType;Lorg/joml/Vector4f;FZF)Lnet/minecraft/client/render/Fog;
      intermediary method_3211 Lnet/minecraft/class_758;method_3211(Lnet/minecraft/class_4184;Lnet/minecraft/class_758$class_4596;Lorg/joml/Vector4f;FZF)Lnet/minecraft/class_9958;
      official a Lgkz;a(Lflo;Lgkz$d;Lorg/joml/Vector4f;FZF)Lgky;