Class ChunkLightProvider.PackedInfo

java.lang.Object
net.minecraft.world.chunk.light.ChunkLightProvider.PackedInfo
Enclosing class:
ChunkLightProvider<M extends ChunkToNibbleArrayMap<M>,S extends LightStorage<M>>

public static class ChunkLightProvider.PackedInfo extends Object
Methods for manipulating a set of bitflags with yet unknown functionality.
  • Bits 0 – 3 stores the 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 for forcibly setting the light level.
Mappings:
Namespace Name
named net/minecraft/world/chunk/light/ChunkLightProvider$PackedInfo
intermediary net/minecraft/class_3558$class_8531
official ffr$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$PackedInfo;DIRECTION_BIT_OFFSET:I
      intermediary field_44737 Lnet/minecraft/class_3558$class_8531;field_44737:I
      official a Lffr$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$PackedInfo;field_44738:I
      intermediary field_44738 Lnet/minecraft/class_3558$class_8531;field_44738:I
      official b Lffr$a;b:I
    • LIGHT_LEVEL_MASK

      private static final long LIGHT_LEVEL_MASK
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named LIGHT_LEVEL_MASK Lnet/minecraft/world/chunk/light/ChunkLightProvider$PackedInfo;LIGHT_LEVEL_MASK:J
      intermediary field_44739 Lnet/minecraft/class_3558$class_8531;field_44739:J
      official c Lffr$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$PackedInfo;DIRECTION_BIT_MASK:J
      intermediary field_44740 Lnet/minecraft/class_3558$class_8531;field_44740:J
      official d Lffr$a;d:J
    • TRIVIAL_FLAG

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

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

    • PackedInfo

      public PackedInfo()
  • Method Details

    • packWithOneDirectionCleared

      public static long packWithOneDirectionCleared(int lightLevel, Direction direction)
      Mappings:
      Namespace Name Mixin selector
      named packWithOneDirectionCleared Lnet/minecraft/world/chunk/light/ChunkLightProvider$PackedInfo;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 Lffr$a;a(ILjg;)J
    • packWithAllDirectionsSet

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

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

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

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

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

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

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

      public static boolean forceSet(long packed)
      Mappings:
      Namespace Name Mixin selector
      named forceSet Lnet/minecraft/world/chunk/light/ChunkLightProvider$PackedInfo;forceSet(J)Z
      intermediary method_51582 Lnet/minecraft/class_3558$class_8531;method_51582(J)Z
      official c Lffr$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$PackedInfo;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 Lffr$a;a(JLjg;)Z
    • withLightLevel

      private static long withLightLevel(long packed, int lightLevel)
      Mappings:
      Namespace Name Mixin selector
      named withLightLevel Lnet/minecraft/world/chunk/light/ChunkLightProvider$PackedInfo;withLightLevel(JI)J
      intermediary method_51576 Lnet/minecraft/class_3558$class_8531;method_51576(JI)J
      official a Lffr$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$PackedInfo;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 Lffr$a;b(JLjg;)J
    • clearDirectionBit

      private static long clearDirectionBit(long packed, Direction direction)
      Mappings:
      Namespace Name Mixin selector
      named clearDirectionBit Lnet/minecraft/world/chunk/light/ChunkLightProvider$PackedInfo;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 Lffr$a;c(JLjg;)J