net.minecraft.world.chunk.light

public class ChunkLightProvider$PackedInfo

net.minecraft.world.level.lighting.LightEngine$QueueEntry
net.minecraft.class_3558$class_8531
net.minecraft.world.chunk.light.ChunkLightProvider$PackedInfo

Field summary

Modifier and TypeField
private static final int
FROM_LEVEL_BITS
field_44737
DIRECTION_BIT_OFFSET
private static final int
DIRECTION_BITS
field_44738
DIRECTION_COUNT
private static final long
LEVEL_MASK
field_44739
LIGHT_LEVEL_MASK
private static final long
DIRECTIONS_MASK
field_44740
DIRECTION_BIT_MASK
private static final long
FLAG_FROM_EMPTY_SHAPE
field_44741
TRIVIAL_FLAG
private static final long
FLAG_INCREASE_FROM_EMISSION
field_44742
FORCE_SET_FLAG

Constructor summary

ModifierConstructor
public ()

Method summary

Modifier and TypeMethod
public static long
decreaseSkipOneDirection(int oldFromLevel, Direction skipDirection)
method_51572(int arg0, class_2350 arg1)
packWithOneDirectionCleared(int lightLevel, Direction direction)
public static long
decreaseAllDirections(int oldFromLevel)
method_51571(int arg0)
packWithAllDirectionsSet(int lightLevel)
public static long
increaseLightFromEmission(int newFromLevel, boolean fromEmptyShape)
method_51573(int arg0, boolean arg1)
packWithForce(int lightLevel, boolean trivial)
public static long
increaseSkipOneDirection(int newFromLevel, boolean fromEmptyShape, Direction skipDirection)
method_51574(int arg0, boolean arg1, class_2350 arg2)
packWithOneDirectionCleared(int lightLevel, boolean trivial, Direction direction)
public static long
increaseOnlyOneDirection(int newFromLevel, boolean fromEmptyShape, Direction direction)
method_51579(int arg0, boolean arg1, class_2350 arg2)
packWithRepropagate(int lightLevel, boolean trivial, Direction direction)
public static long
increaseSkySourceInDirections(boolean down, boolean north, boolean south, boolean west, boolean east)
method_51578(boolean arg0, boolean arg1, boolean arg2, boolean arg3, boolean arg4)
packSkyLightPropagation(boolean down, boolean north, boolean south, boolean west, boolean east)
public static int
getFromLevel(long entry)
method_51575(long arg0)
getLightLevel(long packed)
public static boolean
isFromEmptyShape(long entry)
method_51580(long arg0)
isTrivial(long packed)
public static boolean
isIncreaseFromEmission(long entry)
method_51582(long arg0)
forceSet(long packed)
public static boolean
shouldPropagateInDirection(long entry, Direction direction)
method_51577(long arg0, class_2350 arg1)
isDirectionBitSet(long packed, Direction direction)
private static long
withLevel(long entry, int level)
method_51576(long arg0, int arg1)
withLightLevel(long packed, int lightLevel)
private static long
withDirection(long entry, Direction direction)
method_51581(long arg0, class_2350 arg1)
setDirectionBit(long packed, Direction direction)
private static long
withoutDirection(long entry, Direction direction)
method_51583(long arg0, class_2350 arg1)
clearDirectionBit(long packed, Direction direction)