Package net.minecraft.client.render
Class LightmapTextureManager
java.lang.Object
net.minecraft.client.render.LightmapTextureManager
- All Implemented Interfaces:
AutoCloseable
The lightmap texture manager maintains a texture containing the RGBA overlay for each of the 16×16 sky and block light combinations.
Also contains some utilities to pack and unpack lightmap coordinates from sky and block light values, and some lightmap coordinates constants.
- Mappings:
Namespace Name named net/minecraft/client/render/LightmapTextureManagerintermediary net/minecraft/class_765official hfs
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Vector3fprivate final MappableRingBufferprivate final MinecraftClientprivate booleanprivate static final intprivate floatprivate final GpuTextureprivate final GpuTextureViewstatic final intRepresents the maximum block-light-wise lightmap coordinate whose value is 240.static final intRepresents the maximum lightmap coordinate, where both sky light and block light equals15.static final intRepresents the maximum sky-light-wise lightmap coordinate whose value is 15728640.private final GameRendererprivate static final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intapplyEmission(int light, int lightEmission) voidclose()voiddisable()voidenable()static intgetBlockLightCoordinates(int light) static floatgetBrightness(float ambientLight, int lightLevel) static floatgetBrightness(DimensionType type, int lightLevel) private floatgetDarkness(LivingEntity entity, float factor, float tickProgress) static intgetSkyLightCoordinates(int light) static intpack(int block, int sky) voidtick()voidupdate(float tickProgress)
-
Field Details
-
MAX_LIGHT_COORDINATE
public static final int MAX_LIGHT_COORDINATERepresents the maximum lightmap coordinate, where both sky light and block light equals15. The value of this maximum lightmap coordinate is 15728880.- See Also:
- Mappings:
Namespace Name Mixin selector named MAX_LIGHT_COORDINATELnet/minecraft/client/render/LightmapTextureManager;MAX_LIGHT_COORDINATE:Iintermediary field_32767Lnet/minecraft/class_765;field_32767:Iofficial aLhfs;a:I
-
MAX_SKY_LIGHT_COORDINATE
public static final int MAX_SKY_LIGHT_COORDINATERepresents the maximum sky-light-wise lightmap coordinate whose value is 15728640. This is equivalent to a15sky light and0block light.- See Also:
- Mappings:
Namespace Name Mixin selector named MAX_SKY_LIGHT_COORDINATELnet/minecraft/client/render/LightmapTextureManager;MAX_SKY_LIGHT_COORDINATE:Iintermediary field_32768Lnet/minecraft/class_765;field_32768:Iofficial bLhfs;b:I
-
MAX_BLOCK_LIGHT_COORDINATE
public static final int MAX_BLOCK_LIGHT_COORDINATERepresents the maximum block-light-wise lightmap coordinate whose value is 240. This is equivalent to a0sky light and15block light.- See Also:
- Mappings:
Namespace Name Mixin selector named MAX_BLOCK_LIGHT_COORDINATELnet/minecraft/client/render/LightmapTextureManager;MAX_BLOCK_LIGHT_COORDINATE:Iintermediary field_32769Lnet/minecraft/class_765;field_32769:Iofficial cLhfs;c:I
-
field_53098
private static final int field_53098- See Also:
- Mappings:
Namespace Name Mixin selector named field_53098Lnet/minecraft/client/render/LightmapTextureManager;field_53098:Iintermediary field_53098Lnet/minecraft/class_765;field_53098:Iofficial dLhfs;d:I
-
UBO_SIZE
private static final int UBO_SIZE- Mappings:
Namespace Name Mixin selector named UBO_SIZELnet/minecraft/client/render/LightmapTextureManager;UBO_SIZE:Iintermediary field_60111Lnet/minecraft/class_765;field_60111:Iofficial eLhfs;e:I
-
ALTERNATE_SKY_LIGHT_COLOR
- Mappings:
Namespace Name Mixin selector named ALTERNATE_SKY_LIGHT_COLORLnet/minecraft/client/render/LightmapTextureManager;ALTERNATE_SKY_LIGHT_COLOR:Lorg/joml/Vector3f;intermediary field_62043Lnet/minecraft/class_765;field_62043:Lorg/joml/Vector3f;official fLhfs;f:Lorg/joml/Vector3f;
-
glTexture
- Mappings:
Namespace Name Mixin selector named glTextureLnet/minecraft/client/render/LightmapTextureManager;glTexture:Lcom/mojang/blaze3d/textures/GpuTexture;intermediary field_57927Lnet/minecraft/class_765;field_57927:Lcom/mojang/blaze3d/textures/GpuTexture;official gLhfs;g:Lcom/mojang/blaze3d/textures/GpuTexture;
-
glTextureView
- Mappings:
Namespace Name Mixin selector named glTextureViewLnet/minecraft/client/render/LightmapTextureManager;glTextureView:Lcom/mojang/blaze3d/textures/GpuTextureView;intermediary field_60581Lnet/minecraft/class_765;field_60581:Lcom/mojang/blaze3d/textures/GpuTextureView;official hLhfs;h:Lcom/mojang/blaze3d/textures/GpuTextureView;
-
dirty
private boolean dirty- Mappings:
Namespace Name Mixin selector named dirtyLnet/minecraft/client/render/LightmapTextureManager;dirty:Zintermediary field_4135Lnet/minecraft/class_765;field_4135:Zofficial iLhfs;i:Z
-
flickerIntensity
private float flickerIntensity- Mappings:
Namespace Name Mixin selector named flickerIntensityLnet/minecraft/client/render/LightmapTextureManager;flickerIntensity:Fintermediary field_21528Lnet/minecraft/class_765;field_21528:Fofficial jLhfs;j:F
-
renderer
- Mappings:
Namespace Name Mixin selector named rendererLnet/minecraft/client/render/LightmapTextureManager;renderer:Lnet/minecraft/client/render/GameRenderer;intermediary field_4134Lnet/minecraft/class_765;field_4134:Lnet/minecraft/class_757;official kLhfs;k:Lhfk;
-
client
- Mappings:
Namespace Name Mixin selector named clientLnet/minecraft/client/render/LightmapTextureManager;client:Lnet/minecraft/client/MinecraftClient;intermediary field_4137Lnet/minecraft/class_765;field_4137:Lnet/minecraft/class_310;official lLhfs;l:Lfzz;
-
buffer
- Mappings:
Namespace Name Mixin selector named bufferLnet/minecraft/client/render/LightmapTextureManager;buffer:Lnet/minecraft/client/gl/MappableRingBuffer;intermediary field_60112Lnet/minecraft/class_765;field_60112:Lnet/minecraft/class_11285;official mLhfs;m:Lhfu;
-
-
Constructor Details
-
LightmapTextureManager
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/client/render/LightmapTextureManager;<init>(Lnet/minecraft/client/render/GameRenderer;Lnet/minecraft/client/MinecraftClient;)Vintermediary <init>Lnet/minecraft/class_765;<init>(Lnet/minecraft/class_757;Lnet/minecraft/class_310;)Vofficial <init>Lhfs;<init>(Lhfk;Lfzz;)V
-
-
Method Details
-
getGlTextureView
- Mappings:
Namespace Name Mixin selector named getGlTextureViewLnet/minecraft/client/render/LightmapTextureManager;getGlTextureView()Lcom/mojang/blaze3d/textures/GpuTextureView;intermediary method_71650Lnet/minecraft/class_765;method_71650()Lcom/mojang/blaze3d/textures/GpuTextureView;official aLhfs;a()Lcom/mojang/blaze3d/textures/GpuTextureView;
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-
tick
public void tick()- Mappings:
Namespace Name Mixin selector named tickLnet/minecraft/client/render/LightmapTextureManager;tick()Vintermediary method_3314Lnet/minecraft/class_765;method_3314()Vofficial bLhfs;b()V
-
disable
public void disable()- Mappings:
Namespace Name Mixin selector named disableLnet/minecraft/client/render/LightmapTextureManager;disable()Vintermediary method_3315Lnet/minecraft/class_765;method_3315()Vofficial cLhfs;c()V
-
enable
public void enable()- Mappings:
Namespace Name Mixin selector named enableLnet/minecraft/client/render/LightmapTextureManager;enable()Vintermediary method_3316Lnet/minecraft/class_765;method_3316()Vofficial dLhfs;d()V
-
getDarkness
- Mappings:
Namespace Name Mixin selector named getDarknessLnet/minecraft/client/render/LightmapTextureManager;getDarkness(Lnet/minecraft/entity/LivingEntity;FF)Fintermediary method_42596Lnet/minecraft/class_765;method_42596(Lnet/minecraft/class_1309;FF)Fofficial aLhfs;a(Lcew;FF)F
-
update
public void update(float tickProgress) - Mappings:
Namespace Name Mixin selector named updateLnet/minecraft/client/render/LightmapTextureManager;update(F)Vintermediary method_3313Lnet/minecraft/class_765;method_3313(F)Vofficial aLhfs;a(F)V
-
getBrightness
- Mappings:
Namespace Name Mixin selector named getBrightnessLnet/minecraft/client/render/LightmapTextureManager;getBrightness(Lnet/minecraft/world/dimension/DimensionType;I)Fintermediary method_23284Lnet/minecraft/class_765;method_23284(Lnet/minecraft/class_2874;I)Fofficial aLhfs;a(Lenn;I)F
-
getBrightness
public static float getBrightness(float ambientLight, int lightLevel) - Mappings:
Namespace Name Mixin selector named getBrightnessLnet/minecraft/client/render/LightmapTextureManager;getBrightness(FI)Fintermediary method_62226Lnet/minecraft/class_765;method_62226(FI)Fofficial aLhfs;a(FI)F
-
pack
public static int pack(int block, int sky) - Mappings:
Namespace Name Mixin selector named packLnet/minecraft/client/render/LightmapTextureManager;pack(II)Iintermediary method_23687Lnet/minecraft/class_765;method_23687(II)Iofficial aLhfs;a(II)I
-
getBlockLightCoordinates
public static int getBlockLightCoordinates(int light) - Mappings:
Namespace Name Mixin selector named getBlockLightCoordinatesLnet/minecraft/client/render/LightmapTextureManager;getBlockLightCoordinates(I)Iintermediary method_24186Lnet/minecraft/class_765;method_24186(I)Iofficial aLhfs;a(I)I
-
getSkyLightCoordinates
public static int getSkyLightCoordinates(int light) - Mappings:
Namespace Name Mixin selector named getSkyLightCoordinatesLnet/minecraft/client/render/LightmapTextureManager;getSkyLightCoordinates(I)Iintermediary method_24187Lnet/minecraft/class_765;method_24187(I)Iofficial bLhfs;b(I)I
-
applyEmission
public static int applyEmission(int light, int lightEmission) - Mappings:
Namespace Name Mixin selector named applyEmissionLnet/minecraft/client/render/LightmapTextureManager;applyEmission(II)Iintermediary method_62228Lnet/minecraft/class_765;method_62228(II)Iofficial bLhfs;b(II)I
-