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 dws$aintermediary net/minecraft/class_3558$class_8531named net/minecraft/world/chunk/light/ChunkLightProvider$class_8531
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final longprivate static final intprivate static final intprivate static final longprivate static final longprivate static final long -
Constructor Summary
Constructors -
Method Summary
Modifier 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_OFFSET
private static final int DIRECTION_BIT_OFFSET- See Also:
- Mappings:
Namespace Name Mixin selector official aLdws$a;a:Iintermediary field_44737Lnet/minecraft/class_3558$class_8531;field_44737:Inamed DIRECTION_BIT_OFFSETLnet/minecraft/world/chunk/light/ChunkLightProvider$class_8531;DIRECTION_BIT_OFFSET:I
-
field_44738
private static final int field_44738- See Also:
- Mappings:
Namespace Name Mixin selector official bLdws$a;b:Iintermediary field_44738Lnet/minecraft/class_3558$class_8531;field_44738:Inamed field_44738Lnet/minecraft/world/chunk/light/ChunkLightProvider$class_8531;field_44738:I
-
field_44739
private static final long field_44739- See Also:
- Mappings:
Namespace Name Mixin selector official cLdws$a;c:Jintermediary field_44739Lnet/minecraft/class_3558$class_8531;field_44739:Jnamed field_44739Lnet/minecraft/world/chunk/light/ChunkLightProvider$class_8531;field_44739:J
-
DIRECTION_BIT_MASK
private static final long DIRECTION_BIT_MASK- See Also:
- Mappings:
Namespace Name Mixin selector official dLdws$a;d:Jintermediary field_44740Lnet/minecraft/class_3558$class_8531;field_44740:Jnamed DIRECTION_BIT_MASKLnet/minecraft/world/chunk/light/ChunkLightProvider$class_8531;DIRECTION_BIT_MASK:J
-
field_44741
private static final long field_44741- See Also:
- Mappings:
Namespace Name Mixin selector official eLdws$a;e:Jintermediary field_44741Lnet/minecraft/class_3558$class_8531;field_44741:Jnamed field_44741Lnet/minecraft/world/chunk/light/ChunkLightProvider$class_8531;field_44741:J
-
field_44742
private static final long field_44742- See Also:
- Mappings:
Namespace Name Mixin selector official fLdws$a;f:Jintermediary field_44742Lnet/minecraft/class_3558$class_8531;field_44742:Jnamed field_44742Lnet/minecraft/world/chunk/light/ChunkLightProvider$class_8531;field_44742:J
-
-
Constructor Details
-
class_8531
public class_8531()
-
-
Method Details
-
packWithOneDirectionCleared
- Mappings:
Namespace Name Mixin selector official aLdws$a;a(ILha;)Jintermediary method_51572Lnet/minecraft/class_3558$class_8531;method_51572(ILnet/minecraft/class_2350;)Jnamed packWithOneDirectionClearedLnet/minecraft/world/chunk/light/ChunkLightProvider$class_8531;packWithOneDirectionCleared(ILnet/minecraft/util/math/Direction;)J
-
packWithAllDirectionsSet
public static long packWithAllDirectionsSet(int lightLevel) - Mappings:
Namespace Name Mixin selector official aLdws$a;a(I)Jintermediary method_51571Lnet/minecraft/class_3558$class_8531;method_51571(I)Jnamed packWithAllDirectionsSetLnet/minecraft/world/chunk/light/ChunkLightProvider$class_8531;packWithAllDirectionsSet(I)J
-
method_51573
public static long method_51573(int lightLevel, boolean trivial) - Mappings:
Namespace Name Mixin selector official aLdws$a;a(IZ)Jintermediary method_51573Lnet/minecraft/class_3558$class_8531;method_51573(IZ)Jnamed method_51573Lnet/minecraft/world/chunk/light/ChunkLightProvider$class_8531;method_51573(IZ)J
-
method_51574
- Mappings:
Namespace Name Mixin selector official aLdws$a;a(IZLha;)Jintermediary method_51574Lnet/minecraft/class_3558$class_8531;method_51574(IZLnet/minecraft/class_2350;)Jnamed method_51574Lnet/minecraft/world/chunk/light/ChunkLightProvider$class_8531;method_51574(IZLnet/minecraft/util/math/Direction;)J
-
method_51579
- Mappings:
Namespace Name Mixin selector official bLdws$a;b(IZLha;)Jintermediary method_51579Lnet/minecraft/class_3558$class_8531;method_51579(IZLnet/minecraft/class_2350;)Jnamed method_51579Lnet/minecraft/world/chunk/light/ChunkLightProvider$class_8531;method_51579(IZLnet/minecraft/util/math/Direction;)J
-
method_51578
public static long method_51578(boolean down, boolean north, boolean south, boolean west, boolean east) - Mappings:
Namespace Name Mixin selector official aLdws$a;a(ZZZZZ)Jintermediary method_51578Lnet/minecraft/class_3558$class_8531;method_51578(ZZZZZ)Jnamed method_51578Lnet/minecraft/world/chunk/light/ChunkLightProvider$class_8531;method_51578(ZZZZZ)J
-
getLightLevel
public static int getLightLevel(long packed) - Mappings:
Namespace Name Mixin selector official aLdws$a;a(J)Iintermediary method_51575Lnet/minecraft/class_3558$class_8531;method_51575(J)Inamed getLightLevelLnet/minecraft/world/chunk/light/ChunkLightProvider$class_8531;getLightLevel(J)I
-
isTrivial
public static boolean isTrivial(long packed) - Mappings:
Namespace Name Mixin selector official bLdws$a;b(J)Zintermediary method_51580Lnet/minecraft/class_3558$class_8531;method_51580(J)Znamed isTrivialLnet/minecraft/world/chunk/light/ChunkLightProvider$class_8531;isTrivial(J)Z
-
method_51582
public static boolean method_51582(long packed) - Mappings:
Namespace Name Mixin selector official cLdws$a;c(J)Zintermediary method_51582Lnet/minecraft/class_3558$class_8531;method_51582(J)Znamed method_51582Lnet/minecraft/world/chunk/light/ChunkLightProvider$class_8531;method_51582(J)Z
-
isDirectionBitSet
- Mappings:
Namespace Name Mixin selector official aLdws$a;a(JLha;)Zintermediary method_51577Lnet/minecraft/class_3558$class_8531;method_51577(JLnet/minecraft/class_2350;)Znamed isDirectionBitSetLnet/minecraft/world/chunk/light/ChunkLightProvider$class_8531;isDirectionBitSet(JLnet/minecraft/util/math/Direction;)Z
-
withLightLevel
private static long withLightLevel(long packed, int lightLevel) - Mappings:
Namespace Name Mixin selector official aLdws$a;a(JI)Jintermediary method_51576Lnet/minecraft/class_3558$class_8531;method_51576(JI)Jnamed withLightLevelLnet/minecraft/world/chunk/light/ChunkLightProvider$class_8531;withLightLevel(JI)J
-
setDirectionBit
- Mappings:
Namespace Name Mixin selector official bLdws$a;b(JLha;)Jintermediary method_51581Lnet/minecraft/class_3558$class_8531;method_51581(JLnet/minecraft/class_2350;)Jnamed setDirectionBitLnet/minecraft/world/chunk/light/ChunkLightProvider$class_8531;setDirectionBit(JLnet/minecraft/util/math/Direction;)J
-
clearDirectionBit
- Mappings:
Namespace Name Mixin selector official cLdws$a;c(JLha;)Jintermediary method_51583Lnet/minecraft/class_3558$class_8531;method_51583(JLnet/minecraft/class_2350;)Jnamed clearDirectionBitLnet/minecraft/world/chunk/light/ChunkLightProvider$class_8531;clearDirectionBit(JLnet/minecraft/util/math/Direction;)J
-