Package net.minecraft.world.chunk.light
Class ChunkLightProvider.PackedInfo
java.lang.Object
net.minecraft.world.chunk.light.ChunkLightProvider.PackedInfo
- 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 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$PackedInfointermediary net/minecraft/class_3558$class_8531official ffr$a
-
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 booleanforceSet(long packed) static intgetLightLevel(long packed) static booleanisDirectionBitSet(long packed, Direction direction) static booleanisTrivial(long packed) static longpackSkyLightPropagation(boolean down, boolean north, boolean south, boolean west, boolean east) static longpackWithAllDirectionsSet(int lightLevel) static longpackWithForce(int lightLevel, boolean trivial) static longpackWithOneDirectionCleared(int lightLevel, boolean trivial, Direction direction) static longpackWithOneDirectionCleared(int lightLevel, Direction direction) static longpackWithRepropagate(int lightLevel, boolean trivial, 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 named DIRECTION_BIT_OFFSETLnet/minecraft/world/chunk/light/ChunkLightProvider$PackedInfo;DIRECTION_BIT_OFFSET:Iintermediary field_44737Lnet/minecraft/class_3558$class_8531;field_44737:Iofficial aLffr$a;a:I
-
field_44738
private static final int field_44738- See Also:
- Mappings:
Namespace Name Mixin selector named field_44738Lnet/minecraft/world/chunk/light/ChunkLightProvider$PackedInfo;field_44738:Iintermediary field_44738Lnet/minecraft/class_3558$class_8531;field_44738:Iofficial bLffr$a;b:I
-
LIGHT_LEVEL_MASK
private static final long LIGHT_LEVEL_MASK- See Also:
- Mappings:
Namespace Name Mixin selector named LIGHT_LEVEL_MASKLnet/minecraft/world/chunk/light/ChunkLightProvider$PackedInfo;LIGHT_LEVEL_MASK:Jintermediary field_44739Lnet/minecraft/class_3558$class_8531;field_44739:Jofficial cLffr$a;c:J
-
DIRECTION_BIT_MASK
private static final long DIRECTION_BIT_MASK- See Also:
- Mappings:
Namespace Name Mixin selector named DIRECTION_BIT_MASKLnet/minecraft/world/chunk/light/ChunkLightProvider$PackedInfo;DIRECTION_BIT_MASK:Jintermediary field_44740Lnet/minecraft/class_3558$class_8531;field_44740:Jofficial dLffr$a;d:J
-
TRIVIAL_FLAG
private static final long TRIVIAL_FLAG- See Also:
- Mappings:
Namespace Name Mixin selector named TRIVIAL_FLAGLnet/minecraft/world/chunk/light/ChunkLightProvider$PackedInfo;TRIVIAL_FLAG:Jintermediary field_44741Lnet/minecraft/class_3558$class_8531;field_44741:Jofficial eLffr$a;e:J
-
FORCE_SET_FLAG
private static final long FORCE_SET_FLAG- See Also:
- Mappings:
Namespace Name Mixin selector named FORCE_SET_FLAGLnet/minecraft/world/chunk/light/ChunkLightProvider$PackedInfo;FORCE_SET_FLAG:Jintermediary field_44742Lnet/minecraft/class_3558$class_8531;field_44742:Jofficial fLffr$a;f:J
-
-
Constructor Details
-
PackedInfo
public PackedInfo()
-
-
Method Details
-
packWithOneDirectionCleared
- Mappings:
Namespace Name Mixin selector named packWithOneDirectionClearedLnet/minecraft/world/chunk/light/ChunkLightProvider$PackedInfo;packWithOneDirectionCleared(ILnet/minecraft/util/math/Direction;)Jintermediary method_51572Lnet/minecraft/class_3558$class_8531;method_51572(ILnet/minecraft/class_2350;)Jofficial aLffr$a;a(ILjg;)J
-
packWithAllDirectionsSet
public static long packWithAllDirectionsSet(int lightLevel) - Mappings:
Namespace Name Mixin selector named packWithAllDirectionsSetLnet/minecraft/world/chunk/light/ChunkLightProvider$PackedInfo;packWithAllDirectionsSet(I)Jintermediary method_51571Lnet/minecraft/class_3558$class_8531;method_51571(I)Jofficial aLffr$a;a(I)J
-
packWithForce
public static long packWithForce(int lightLevel, boolean trivial) - Mappings:
Namespace Name Mixin selector named packWithForceLnet/minecraft/world/chunk/light/ChunkLightProvider$PackedInfo;packWithForce(IZ)Jintermediary method_51573Lnet/minecraft/class_3558$class_8531;method_51573(IZ)Jofficial aLffr$a;a(IZ)J
-
packWithOneDirectionCleared
public static long packWithOneDirectionCleared(int lightLevel, boolean trivial, Direction direction) - Mappings:
Namespace Name Mixin selector named packWithOneDirectionClearedLnet/minecraft/world/chunk/light/ChunkLightProvider$PackedInfo;packWithOneDirectionCleared(IZLnet/minecraft/util/math/Direction;)Jintermediary method_51574Lnet/minecraft/class_3558$class_8531;method_51574(IZLnet/minecraft/class_2350;)Jofficial aLffr$a;a(IZLjg;)J
-
packWithRepropagate
- Mappings:
Namespace Name Mixin selector named packWithRepropagateLnet/minecraft/world/chunk/light/ChunkLightProvider$PackedInfo;packWithRepropagate(IZLnet/minecraft/util/math/Direction;)Jintermediary method_51579Lnet/minecraft/class_3558$class_8531;method_51579(IZLnet/minecraft/class_2350;)Jofficial bLffr$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 packSkyLightPropagationLnet/minecraft/world/chunk/light/ChunkLightProvider$PackedInfo;packSkyLightPropagation(ZZZZZ)Jintermediary method_51578Lnet/minecraft/class_3558$class_8531;method_51578(ZZZZZ)Jofficial aLffr$a;a(ZZZZZ)J
-
getLightLevel
public static int getLightLevel(long packed) - Mappings:
Namespace Name Mixin selector named getLightLevelLnet/minecraft/world/chunk/light/ChunkLightProvider$PackedInfo;getLightLevel(J)Iintermediary method_51575Lnet/minecraft/class_3558$class_8531;method_51575(J)Iofficial aLffr$a;a(J)I
-
isTrivial
public static boolean isTrivial(long packed) - Mappings:
Namespace Name Mixin selector named isTrivialLnet/minecraft/world/chunk/light/ChunkLightProvider$PackedInfo;isTrivial(J)Zintermediary method_51580Lnet/minecraft/class_3558$class_8531;method_51580(J)Zofficial bLffr$a;b(J)Z
-
forceSet
public static boolean forceSet(long packed) - Mappings:
Namespace Name Mixin selector named forceSetLnet/minecraft/world/chunk/light/ChunkLightProvider$PackedInfo;forceSet(J)Zintermediary method_51582Lnet/minecraft/class_3558$class_8531;method_51582(J)Zofficial cLffr$a;c(J)Z
-
isDirectionBitSet
- Mappings:
Namespace Name Mixin selector named isDirectionBitSetLnet/minecraft/world/chunk/light/ChunkLightProvider$PackedInfo;isDirectionBitSet(JLnet/minecraft/util/math/Direction;)Zintermediary method_51577Lnet/minecraft/class_3558$class_8531;method_51577(JLnet/minecraft/class_2350;)Zofficial aLffr$a;a(JLjg;)Z
-
withLightLevel
private static long withLightLevel(long packed, int lightLevel) - Mappings:
Namespace Name Mixin selector named withLightLevelLnet/minecraft/world/chunk/light/ChunkLightProvider$PackedInfo;withLightLevel(JI)Jintermediary method_51576Lnet/minecraft/class_3558$class_8531;method_51576(JI)Jofficial aLffr$a;a(JI)J
-
setDirectionBit
- Mappings:
Namespace Name Mixin selector named setDirectionBitLnet/minecraft/world/chunk/light/ChunkLightProvider$PackedInfo;setDirectionBit(JLnet/minecraft/util/math/Direction;)Jintermediary method_51581Lnet/minecraft/class_3558$class_8531;method_51581(JLnet/minecraft/class_2350;)Jofficial bLffr$a;b(JLjg;)J
-
clearDirectionBit
- Mappings:
Namespace Name Mixin selector named clearDirectionBitLnet/minecraft/world/chunk/light/ChunkLightProvider$PackedInfo;clearDirectionBit(JLnet/minecraft/util/math/Direction;)Jintermediary method_51583Lnet/minecraft/class_3558$class_8531;method_51583(JLnet/minecraft/class_2350;)Jofficial cLffr$a;c(JLjg;)J
-