Class LightTexture

java.lang.Object
net.minecraft.client.renderer.LightTexture
All Implemented Interfaces:
AutoCloseable

public class LightTexture extends Object implements AutoCloseable
  • Field Details

    • FULL_BRIGHT

      public static final int FULL_BRIGHT
      See Also:
    • FULL_SKY

      public static final int FULL_SKY
      See Also:
    • FULL_BLOCK

      public static final int FULL_BLOCK
      See Also:
    • lightTexture

      private final DynamicTexture lightTexture
    • lightPixels

      private final NativeImage lightPixels
    • lightTextureLocation

      private final ResourceLocation lightTextureLocation
    • updateLightTexture

      private boolean updateLightTexture
    • blockLightRedFlicker

      private float blockLightRedFlicker
    • renderer

      private final GameRenderer renderer
    • minecraft

      private final Minecraft minecraft
  • Constructor Details

  • Method Details

    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
    • tick

      public void tick()
    • turnOffLightLayer

      public void turnOffLightLayer()
    • turnOnLightLayer

      public void turnOnLightLayer()
    • getDarknessGamma

      private float getDarknessGamma(float pPartialTick)
    • calculateDarknessScale

      private float calculateDarknessScale(LivingEntity pEntity, float pGamma, float pPartialTick)
    • updateLightTexture

      public void updateLightTexture(float pPartialTicks)
    • clampColor

      private static void clampColor(org.joml.Vector3f p_254122_)
    • notGamma

      private float notGamma(float pValue)
    • getBrightness

      public static float getBrightness(DimensionType pDimensionType, int pLightLevel)
    • pack

      public static int pack(int pBlockLight, int pSkyLight)
    • block

      public static int block(int pPackedLight)
    • sky

      public static int sky(int pPackedLight)