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>>

public static class ChunkLightProvider.class_8531 extends Object
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
named net/minecraft/world/chunk/light/ChunkLightProvider$class_8531
intermediary net/minecraft/class_3558$class_8531
official etn$a
  • Field Details

    • DIRECTION_BIT_OFFSET

      private static final int DIRECTION_BIT_OFFSET
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named DIRECTION_BIT_OFFSET Lnet/minecraft/world/chunk/light/ChunkLightProvider$class_8531;DIRECTION_BIT_OFFSET:I
      intermediary field_44737 Lnet/minecraft/class_3558$class_8531;field_44737:I
      official a Letn$a;a:I
    • field_44738

      private static final int field_44738
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_44738 Lnet/minecraft/world/chunk/light/ChunkLightProvider$class_8531;field_44738:I
      intermediary field_44738 Lnet/minecraft/class_3558$class_8531;field_44738:I
      official b Letn$a;b:I
    • field_44739

      private static final long field_44739
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_44739 Lnet/minecraft/world/chunk/light/ChunkLightProvider$class_8531;field_44739:J
      intermediary field_44739 Lnet/minecraft/class_3558$class_8531;field_44739:J
      official c Letn$a;c:J
    • DIRECTION_BIT_MASK

      private static final long DIRECTION_BIT_MASK
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named DIRECTION_BIT_MASK Lnet/minecraft/world/chunk/light/ChunkLightProvider$class_8531;DIRECTION_BIT_MASK:J
      intermediary field_44740 Lnet/minecraft/class_3558$class_8531;field_44740:J
      official d Letn$a;d:J
    • field_44741

      private static final long field_44741
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_44741 Lnet/minecraft/world/chunk/light/ChunkLightProvider$class_8531;field_44741:J
      intermediary field_44741 Lnet/minecraft/class_3558$class_8531;field_44741:J
      official e Letn$a;e:J
    • field_44742

      private static final long field_44742
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_44742 Lnet/minecraft/world/chunk/light/ChunkLightProvider$class_8531;field_44742:J
      intermediary field_44742 Lnet/minecraft/class_3558$class_8531;field_44742:J
      official f Letn$a;f:J
  • Constructor Details

    • class_8531

      public class_8531()
  • Method Details

    • packWithOneDirectionCleared

      public static long packWithOneDirectionCleared(int lightLevel, Direction direction)
      Mappings:
      Namespace Name Mixin selector
      named packWithOneDirectionCleared Lnet/minecraft/world/chunk/light/ChunkLightProvider$class_8531;packWithOneDirectionCleared(ILnet/minecraft/util/math/Direction;)J
      intermediary method_51572 Lnet/minecraft/class_3558$class_8531;method_51572(ILnet/minecraft/class_2350;)J
      official a Letn$a;a(ILjm;)J
    • packWithAllDirectionsSet

      public static long packWithAllDirectionsSet(int lightLevel)
      Mappings:
      Namespace Name Mixin selector
      named packWithAllDirectionsSet Lnet/minecraft/world/chunk/light/ChunkLightProvider$class_8531;packWithAllDirectionsSet(I)J
      intermediary method_51571 Lnet/minecraft/class_3558$class_8531;method_51571(I)J
      official a Letn$a;a(I)J
    • method_51573

      public static long method_51573(int lightLevel, boolean trivial)
      Mappings:
      Namespace Name Mixin selector
      named method_51573 Lnet/minecraft/world/chunk/light/ChunkLightProvider$class_8531;method_51573(IZ)J
      intermediary method_51573 Lnet/minecraft/class_3558$class_8531;method_51573(IZ)J
      official a Letn$a;a(IZ)J
    • method_51574

      public static long method_51574(int lightLevel, boolean trivial, Direction direction)
      Mappings:
      Namespace Name Mixin selector
      named method_51574 Lnet/minecraft/world/chunk/light/ChunkLightProvider$class_8531;method_51574(IZLnet/minecraft/util/math/Direction;)J
      intermediary method_51574 Lnet/minecraft/class_3558$class_8531;method_51574(IZLnet/minecraft/class_2350;)J
      official a Letn$a;a(IZLjm;)J
    • method_51579

      public static long method_51579(int lightLevel, boolean trivial, Direction direction)
      Mappings:
      Namespace Name Mixin selector
      named method_51579 Lnet/minecraft/world/chunk/light/ChunkLightProvider$class_8531;method_51579(IZLnet/minecraft/util/math/Direction;)J
      intermediary method_51579 Lnet/minecraft/class_3558$class_8531;method_51579(IZLnet/minecraft/class_2350;)J
      official b Letn$a;b(IZLjm;)J
    • method_51578

      public static long method_51578(boolean down, boolean north, boolean south, boolean west, boolean east)
      Mappings:
      Namespace Name Mixin selector
      named method_51578 Lnet/minecraft/world/chunk/light/ChunkLightProvider$class_8531;method_51578(ZZZZZ)J
      intermediary method_51578 Lnet/minecraft/class_3558$class_8531;method_51578(ZZZZZ)J
      official a Letn$a;a(ZZZZZ)J
    • getLightLevel

      public static int getLightLevel(long packed)
      Mappings:
      Namespace Name Mixin selector
      named getLightLevel Lnet/minecraft/world/chunk/light/ChunkLightProvider$class_8531;getLightLevel(J)I
      intermediary method_51575 Lnet/minecraft/class_3558$class_8531;method_51575(J)I
      official a Letn$a;a(J)I
    • isTrivial

      public static boolean isTrivial(long packed)
      Mappings:
      Namespace Name Mixin selector
      named isTrivial Lnet/minecraft/world/chunk/light/ChunkLightProvider$class_8531;isTrivial(J)Z
      intermediary method_51580 Lnet/minecraft/class_3558$class_8531;method_51580(J)Z
      official b Letn$a;b(J)Z
    • method_51582

      public static boolean method_51582(long packed)
      Mappings:
      Namespace Name Mixin selector
      named method_51582 Lnet/minecraft/world/chunk/light/ChunkLightProvider$class_8531;method_51582(J)Z
      intermediary method_51582 Lnet/minecraft/class_3558$class_8531;method_51582(J)Z
      official c Letn$a;c(J)Z
    • isDirectionBitSet

      public static boolean isDirectionBitSet(long packed, Direction direction)
      Mappings:
      Namespace Name Mixin selector
      named isDirectionBitSet Lnet/minecraft/world/chunk/light/ChunkLightProvider$class_8531;isDirectionBitSet(JLnet/minecraft/util/math/Direction;)Z
      intermediary method_51577 Lnet/minecraft/class_3558$class_8531;method_51577(JLnet/minecraft/class_2350;)Z
      official a Letn$a;a(JLjm;)Z
    • withLightLevel

      private static long withLightLevel(long packed, int lightLevel)
      Mappings:
      Namespace Name Mixin selector
      named withLightLevel Lnet/minecraft/world/chunk/light/ChunkLightProvider$class_8531;withLightLevel(JI)J
      intermediary method_51576 Lnet/minecraft/class_3558$class_8531;method_51576(JI)J
      official a Letn$a;a(JI)J
    • setDirectionBit

      private static long setDirectionBit(long packed, Direction direction)
      Mappings:
      Namespace Name Mixin selector
      named setDirectionBit Lnet/minecraft/world/chunk/light/ChunkLightProvider$class_8531;setDirectionBit(JLnet/minecraft/util/math/Direction;)J
      intermediary method_51581 Lnet/minecraft/class_3558$class_8531;method_51581(JLnet/minecraft/class_2350;)J
      official b Letn$a;b(JLjm;)J
    • clearDirectionBit

      private static long clearDirectionBit(long packed, Direction direction)
      Mappings:
      Namespace Name Mixin selector
      named clearDirectionBit Lnet/minecraft/world/chunk/light/ChunkLightProvider$class_8531;clearDirectionBit(JLnet/minecraft/util/math/Direction;)J
      intermediary method_51583 Lnet/minecraft/class_3558$class_8531;method_51583(JLnet/minecraft/class_2350;)J
      official c Letn$a;c(JLjm;)J