Package net.minecraft.world.chunk.light
Class ChunkLightProvider.class_8531
java.lang.Object
net.minecraft.world.chunk.light.ChunkLightProvider.class_8531
- Enclosing class:
- ChunkLightProvider<M extends ChunkToNibbleArrayMap<M>,- S extends LightStorage<M>> 
Methods for manipulating a set of bitflags with yet unknown functionality.
 
- Bits 0 – 3 likely store a light level.
- Bits 4 – 9 store a flag for each of the six directions.
- Bit 10 stores whether the block at this position is trivial for lighting — if its opacity is not directionally dependent.
- Bit 11 stores a flag with unknown function.
- Mappings:
- Namespace - Name - official - dwv$a- intermediary - net/minecraft/class_3558$class_8531- named - net/minecraft/world/chunk/light/ChunkLightProvider$class_8531
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate static final longprivate static final intprivate static final intprivate static final longprivate static final longprivate static final long
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprivate static longclearDirectionBit(long packed, Direction direction) static intgetLightLevel(long packed) static booleanisDirectionBitSet(long packed, Direction direction) static booleanisTrivial(long packed) static longmethod_51573(int lightLevel, boolean trivial) static longmethod_51574(int lightLevel, boolean trivial, Direction direction) static longmethod_51578(boolean down, boolean north, boolean south, boolean west, boolean east) static longmethod_51579(int lightLevel, boolean trivial, Direction direction) static booleanmethod_51582(long packed) static longpackWithAllDirectionsSet(int lightLevel) static longpackWithOneDirectionCleared(int lightLevel, Direction direction) private static longsetDirectionBit(long packed, Direction direction) private static longwithLightLevel(long packed, int lightLevel) 
- 
Field Details- 
DIRECTION_BIT_OFFSETprivate static final int DIRECTION_BIT_OFFSET- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - a- Ldwv$a;a:I- intermediary - field_44737- Lnet/minecraft/class_3558$class_8531;field_44737:I- named - DIRECTION_BIT_OFFSET- Lnet/minecraft/world/chunk/light/ChunkLightProvider$class_8531;DIRECTION_BIT_OFFSET:I
 
- 
field_44738private static final int field_44738- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - b- Ldwv$a;b:I- intermediary - field_44738- Lnet/minecraft/class_3558$class_8531;field_44738:I- named - field_44738- Lnet/minecraft/world/chunk/light/ChunkLightProvider$class_8531;field_44738:I
 
- 
field_44739private static final long field_44739- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - c- Ldwv$a;c:J- intermediary - field_44739- Lnet/minecraft/class_3558$class_8531;field_44739:J- named - field_44739- Lnet/minecraft/world/chunk/light/ChunkLightProvider$class_8531;field_44739:J
 
- 
DIRECTION_BIT_MASKprivate static final long DIRECTION_BIT_MASK- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - d- Ldwv$a;d:J- intermediary - field_44740- Lnet/minecraft/class_3558$class_8531;field_44740:J- named - DIRECTION_BIT_MASK- Lnet/minecraft/world/chunk/light/ChunkLightProvider$class_8531;DIRECTION_BIT_MASK:J
 
- 
field_44741private static final long field_44741- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - e- Ldwv$a;e:J- intermediary - field_44741- Lnet/minecraft/class_3558$class_8531;field_44741:J- named - field_44741- Lnet/minecraft/world/chunk/light/ChunkLightProvider$class_8531;field_44741:J
 
- 
field_44742private static final long field_44742- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - f- Ldwv$a;f:J- intermediary - field_44742- Lnet/minecraft/class_3558$class_8531;field_44742:J- named - field_44742- Lnet/minecraft/world/chunk/light/ChunkLightProvider$class_8531;field_44742:J
 
 
- 
- 
Constructor Details- 
class_8531public class_8531()
 
- 
- 
Method Details- 
packWithOneDirectionCleared- Mappings:
- Namespace - Name - Mixin selector - official - a- Ldwv$a;a(ILha;)J- intermediary - method_51572- Lnet/minecraft/class_3558$class_8531;method_51572(ILnet/minecraft/class_2350;)J- named - packWithOneDirectionCleared- Lnet/minecraft/world/chunk/light/ChunkLightProvider$class_8531;packWithOneDirectionCleared(ILnet/minecraft/util/math/Direction;)J
 
- 
packWithAllDirectionsSetpublic static long packWithAllDirectionsSet(int lightLevel) - Mappings:
- Namespace - Name - Mixin selector - official - a- Ldwv$a;a(I)J- intermediary - method_51571- Lnet/minecraft/class_3558$class_8531;method_51571(I)J- named - packWithAllDirectionsSet- Lnet/minecraft/world/chunk/light/ChunkLightProvider$class_8531;packWithAllDirectionsSet(I)J
 
- 
method_51573public static long method_51573(int lightLevel, boolean trivial) - Mappings:
- Namespace - Name - Mixin selector - official - a- Ldwv$a;a(IZ)J- intermediary - method_51573- Lnet/minecraft/class_3558$class_8531;method_51573(IZ)J- named - method_51573- Lnet/minecraft/world/chunk/light/ChunkLightProvider$class_8531;method_51573(IZ)J
 
- 
method_51574- Mappings:
- Namespace - Name - Mixin selector - official - a- Ldwv$a;a(IZLha;)J- intermediary - method_51574- Lnet/minecraft/class_3558$class_8531;method_51574(IZLnet/minecraft/class_2350;)J- named - method_51574- Lnet/minecraft/world/chunk/light/ChunkLightProvider$class_8531;method_51574(IZLnet/minecraft/util/math/Direction;)J
 
- 
method_51579- Mappings:
- Namespace - Name - Mixin selector - official - b- Ldwv$a;b(IZLha;)J- intermediary - method_51579- Lnet/minecraft/class_3558$class_8531;method_51579(IZLnet/minecraft/class_2350;)J- named - method_51579- Lnet/minecraft/world/chunk/light/ChunkLightProvider$class_8531;method_51579(IZLnet/minecraft/util/math/Direction;)J
 
- 
method_51578public static long method_51578(boolean down, boolean north, boolean south, boolean west, boolean east) - Mappings:
- Namespace - Name - Mixin selector - official - a- Ldwv$a;a(ZZZZZ)J- intermediary - method_51578- Lnet/minecraft/class_3558$class_8531;method_51578(ZZZZZ)J- named - method_51578- Lnet/minecraft/world/chunk/light/ChunkLightProvider$class_8531;method_51578(ZZZZZ)J
 
- 
getLightLevelpublic static int getLightLevel(long packed) - Mappings:
- Namespace - Name - Mixin selector - official - a- Ldwv$a;a(J)I- intermediary - method_51575- Lnet/minecraft/class_3558$class_8531;method_51575(J)I- named - getLightLevel- Lnet/minecraft/world/chunk/light/ChunkLightProvider$class_8531;getLightLevel(J)I
 
- 
isTrivialpublic static boolean isTrivial(long packed) - Mappings:
- Namespace - Name - Mixin selector - official - b- Ldwv$a;b(J)Z- intermediary - method_51580- Lnet/minecraft/class_3558$class_8531;method_51580(J)Z- named - isTrivial- Lnet/minecraft/world/chunk/light/ChunkLightProvider$class_8531;isTrivial(J)Z
 
- 
method_51582public static boolean method_51582(long packed) - Mappings:
- Namespace - Name - Mixin selector - official - c- Ldwv$a;c(J)Z- intermediary - method_51582- Lnet/minecraft/class_3558$class_8531;method_51582(J)Z- named - method_51582- Lnet/minecraft/world/chunk/light/ChunkLightProvider$class_8531;method_51582(J)Z
 
- 
isDirectionBitSet- Mappings:
- Namespace - Name - Mixin selector - official - a- Ldwv$a;a(JLha;)Z- intermediary - method_51577- Lnet/minecraft/class_3558$class_8531;method_51577(JLnet/minecraft/class_2350;)Z- named - isDirectionBitSet- Lnet/minecraft/world/chunk/light/ChunkLightProvider$class_8531;isDirectionBitSet(JLnet/minecraft/util/math/Direction;)Z
 
- 
withLightLevelprivate static long withLightLevel(long packed, int lightLevel) - Mappings:
- Namespace - Name - Mixin selector - official - a- Ldwv$a;a(JI)J- intermediary - method_51576- Lnet/minecraft/class_3558$class_8531;method_51576(JI)J- named - withLightLevel- Lnet/minecraft/world/chunk/light/ChunkLightProvider$class_8531;withLightLevel(JI)J
 
- 
setDirectionBit- Mappings:
- Namespace - Name - Mixin selector - official - b- Ldwv$a;b(JLha;)J- intermediary - method_51581- Lnet/minecraft/class_3558$class_8531;method_51581(JLnet/minecraft/class_2350;)J- named - setDirectionBit- Lnet/minecraft/world/chunk/light/ChunkLightProvider$class_8531;setDirectionBit(JLnet/minecraft/util/math/Direction;)J
 
- 
clearDirectionBit- Mappings:
- Namespace - Name - Mixin selector - official - c- Ldwv$a;c(JLha;)J- intermediary - method_51583- Lnet/minecraft/class_3558$class_8531;method_51583(JLnet/minecraft/class_2350;)J- named - clearDirectionBit- Lnet/minecraft/world/chunk/light/ChunkLightProvider$class_8531;clearDirectionBit(JLnet/minecraft/util/math/Direction;)J
 
 
-