Class WeatherRendering

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

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

    • field_53148

      private static final int field_53148
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_53148 Lnet/minecraft/client/render/WeatherRendering;field_53148:I
      intermediary field_53148 Lnet/minecraft/class_9976;field_53148:I
      official a Lgmk;a:I
    • field_53149

      private static final int field_53149
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_53149 Lnet/minecraft/client/render/WeatherRendering;field_53149:I
      intermediary field_53149 Lnet/minecraft/class_9976;field_53149:I
      official b Lgmk;b:I
    • RAIN_TEXTURE

      private static final Identifier RAIN_TEXTURE
      Mappings:
      Namespace Name Mixin selector
      named RAIN_TEXTURE Lnet/minecraft/client/render/WeatherRendering;RAIN_TEXTURE:Lnet/minecraft/util/Identifier;
      intermediary field_53150 Lnet/minecraft/class_9976;field_53150:Lnet/minecraft/class_2960;
      official c Lgmk;c:Lalz;
    • SNOW_TEXTURE

      private static final Identifier SNOW_TEXTURE
      Mappings:
      Namespace Name Mixin selector
      named SNOW_TEXTURE Lnet/minecraft/client/render/WeatherRendering;SNOW_TEXTURE:Lnet/minecraft/util/Identifier;
      intermediary field_53151 Lnet/minecraft/class_9976;field_53151:Lnet/minecraft/class_2960;
      official d Lgmk;d:Lalz;
    • field_53152

      private static final int field_53152
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_53152 Lnet/minecraft/client/render/WeatherRendering;field_53152:I
      intermediary field_53152 Lnet/minecraft/class_9976;field_53152:I
      official e Lgmk;e:I
    • field_53153

      private static final int field_53153
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_53153 Lnet/minecraft/client/render/WeatherRendering;field_53153:I
      intermediary field_53153 Lnet/minecraft/class_9976;field_53153:I
      official f Lgmk;f:I
    • field_53154

      private int field_53154
      Mappings:
      Namespace Name Mixin selector
      named field_53154 Lnet/minecraft/client/render/WeatherRendering;field_53154:I
      intermediary field_53154 Lnet/minecraft/class_9976;field_53154:I
      official g Lgmk;g:I
    • NORMAL_LINE_DX

      private final float[] NORMAL_LINE_DX
      Given -16 <= z < 16 and -16 <= x < 16, let i = 32 * (z + 16) + (x + 16). Then NORMAL_LINE_DX[i] and NORMAL_LINE_DZ[i] describe the unit vector perpendicular to (x, z). These lookup tables are used for rendering rain and snow.
      Mappings:
      Namespace Name Mixin selector
      named NORMAL_LINE_DX Lnet/minecraft/client/render/WeatherRendering;NORMAL_LINE_DX:[F
      intermediary field_53155 Lnet/minecraft/class_9976;field_53155:[F
      official h Lgmk;h:[F
    • NORMAL_LINE_DZ

      private final float[] NORMAL_LINE_DZ
      Mappings:
      Namespace Name Mixin selector
      named NORMAL_LINE_DZ Lnet/minecraft/client/render/WeatherRendering;NORMAL_LINE_DZ:[F
      intermediary field_53156 Lnet/minecraft/class_9976;field_53156:[F
      official i Lgmk;i:[F
  • Constructor Details

    • WeatherRendering

      public WeatherRendering()
  • Method Details

    • renderPrecipitation

      public void renderPrecipitation(World world, LightmapTextureManager lightmapTextureManager, int ticks, float delta, Vec3d pos)
      Mappings:
      Namespace Name Mixin selector
      named renderPrecipitation Lnet/minecraft/client/render/WeatherRendering;renderPrecipitation(Lnet/minecraft/world/World;Lnet/minecraft/client/render/LightmapTextureManager;IFLnet/minecraft/util/math/Vec3d;)V
      intermediary method_62316 Lnet/minecraft/class_9976;method_62316(Lnet/minecraft/class_1937;Lnet/minecraft/class_765;IFLnet/minecraft/class_243;)V
      official a Lgmk;a(Ldhh;Lgli;IFLfbx;)V
    • buildPrecipitationPieces

      private void buildPrecipitationPieces(World world, int ticks, float delta, Vec3d pos, int range, List<WeatherRendering.Piece> rainOut, List<WeatherRendering.Piece> snowOut)
      Mappings:
      Namespace Name Mixin selector
      named buildPrecipitationPieces Lnet/minecraft/client/render/WeatherRendering;buildPrecipitationPieces(Lnet/minecraft/world/World;IFLnet/minecraft/util/math/Vec3d;ILjava/util/List;Ljava/util/List;)V
      intermediary method_62315 Lnet/minecraft/class_9976;method_62315(Lnet/minecraft/class_1937;IFLnet/minecraft/class_243;ILjava/util/List;Ljava/util/List;)V
      official a Lgmk;a(Ldhh;IFLfbx;ILjava/util/List;Ljava/util/List;)V
    • renderPrecipitation

      private void renderPrecipitation(LightmapTextureManager lightmapTextureManager, Vec3d pos, int range, float gradient, List<WeatherRendering.Piece> rainPieces, List<WeatherRendering.Piece> snowPieces)
      Mappings:
      Namespace Name Mixin selector
      named renderPrecipitation Lnet/minecraft/client/render/WeatherRendering;renderPrecipitation(Lnet/minecraft/client/render/LightmapTextureManager;Lnet/minecraft/util/math/Vec3d;IFLjava/util/List;Ljava/util/List;)V
      intermediary method_62320 Lnet/minecraft/class_9976;method_62320(Lnet/minecraft/class_765;Lnet/minecraft/class_243;IFLjava/util/List;Ljava/util/List;)V
      official a Lgmk;a(Lgli;Lfbx;IFLjava/util/List;Ljava/util/List;)V
    • createRainPiece

      private WeatherRendering.Piece createRainPiece(Random random, int ticks, int x, int yMin, int yMax, int z, int light, float tickDelta)
      Mappings:
      Namespace Name Mixin selector
      named createRainPiece Lnet/minecraft/client/render/WeatherRendering;createRainPiece(Lnet/minecraft/util/math/random/Random;IIIIIIF)Lnet/minecraft/client/render/WeatherRendering$Piece;
      intermediary method_62314 Lnet/minecraft/class_9976;method_62314(Lnet/minecraft/class_5819;IIIIIIF)Lnet/minecraft/class_9976$class_9977;
      official a Lgmk;a(Lbam;IIIIIIF)Lgmk$a;
    • createSnowPiece

      private WeatherRendering.Piece createSnowPiece(Random random, int ticks, int x, int yMin, int yMax, int z, int light, float tickDelta)
      Mappings:
      Namespace Name Mixin selector
      named createSnowPiece Lnet/minecraft/client/render/WeatherRendering;createSnowPiece(Lnet/minecraft/util/math/random/Random;IIIIIIF)Lnet/minecraft/client/render/WeatherRendering$Piece;
      intermediary method_62321 Lnet/minecraft/class_9976;method_62321(Lnet/minecraft/class_5819;IIIIIIF)Lnet/minecraft/class_9976$class_9977;
      official b Lgmk;b(Lbam;IIIIIIF)Lgmk$a;
    • renderPieces

      private void renderPieces(Tessellator tessellator, List<WeatherRendering.Piece> pieces, Vec3d pos, float intensity, int range, float gradient)
      Mappings:
      Namespace Name Mixin selector
      named renderPieces Lnet/minecraft/client/render/WeatherRendering;renderPieces(Lnet/minecraft/client/render/Tessellator;Ljava/util/List;Lnet/minecraft/util/math/Vec3d;FIF)V
      intermediary method_62318 Lnet/minecraft/class_9976;method_62318(Lnet/minecraft/class_289;Ljava/util/List;Lnet/minecraft/class_243;FIF)V
      official a Lgmk;a(Lfgt;Ljava/util/List;Lfbx;FIF)V
    • addParticlesAndSound

      public void addParticlesAndSound(ClientWorld world, Camera camera, int ticks, ParticlesMode particlesMode)
      Mappings:
      Namespace Name Mixin selector
      named addParticlesAndSound Lnet/minecraft/client/render/WeatherRendering;addParticlesAndSound(Lnet/minecraft/client/world/ClientWorld;Lnet/minecraft/client/render/Camera;ILnet/minecraft/particle/ParticlesMode;)V
      intermediary method_62319 Lnet/minecraft/class_9976;method_62319(Lnet/minecraft/class_638;Lnet/minecraft/class_4184;ILnet/minecraft/class_4066;)V
      official a Lgmk;a(Lgfj;Lflo;ILarz;)V
    • getPrecipitationAt

      private Biome.Precipitation getPrecipitationAt(World world, BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      named getPrecipitationAt Lnet/minecraft/client/render/WeatherRendering;getPrecipitationAt(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/world/biome/Biome$Precipitation;
      intermediary method_62317 Lnet/minecraft/class_9976;method_62317(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)Lnet/minecraft/class_1959$class_1963;
      official a Lgmk;a(Ldhh;Ljh;)Ldij$c;