Class LightEngine.QueueEntry
java.lang.Object
net.minecraft.world.level.lighting.LightEngine.QueueEntry
- Enclosing class:
LightEngine<M extends DataLayerStorageMap<M>,
S extends LayerLightSectionStorage<M>>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final int
private static final long
private static final long
private static final long
private static final int
private static final long
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic long
decreaseAllDirections
(int level) static long
decreaseSkipOneDirection
(int level, Direction direction) static int
getFromLevel
(long entry) static long
increaseLightFromEmission
(int level, boolean fromEmptyShape) static long
increaseOnlyOneDirection
(int level, boolean fromEmptyShape, Direction direction) static long
increaseSkipOneDirection
(int level, boolean fromEmptyShape, Direction direction) static long
increaseSkySourceInDirections
(boolean down, boolean north, boolean south, boolean west, boolean east) static boolean
isFromEmptyShape
(long entry) static boolean
isIncreaseFromEmission
(long entry) static boolean
shouldPropagateInDirection
(long entry, Direction direction) private static long
withDirection
(long entry, Direction direction) private static long
withLevel
(long entry, int level) private static long
withoutDirection
(long entry, Direction direction)
-
Field Details
-
FROM_LEVEL_BITS
private static final int FROM_LEVEL_BITS- See Also:
-
DIRECTION_BITS
private static final int DIRECTION_BITS- See Also:
-
LEVEL_MASK
private static final long LEVEL_MASK- See Also:
-
DIRECTIONS_MASK
private static final long DIRECTIONS_MASK- See Also:
-
FLAG_FROM_EMPTY_SHAPE
private static final long FLAG_FROM_EMPTY_SHAPE- See Also:
-
FLAG_INCREASE_FROM_EMISSION
private static final long FLAG_INCREASE_FROM_EMISSION- See Also:
-
-
Constructor Details
-
QueueEntry
public QueueEntry()
-
-
Method Details
-
decreaseSkipOneDirection
-
decreaseAllDirections
public static long decreaseAllDirections(int level) -
increaseLightFromEmission
public static long increaseLightFromEmission(int level, boolean fromEmptyShape) -
increaseSkipOneDirection
-
increaseOnlyOneDirection
-
increaseSkySourceInDirections
public static long increaseSkySourceInDirections(boolean down, boolean north, boolean south, boolean west, boolean east) -
getFromLevel
public static int getFromLevel(long entry) -
isFromEmptyShape
public static boolean isFromEmptyShape(long entry) -
isIncreaseFromEmission
public static boolean isIncreaseFromEmission(long entry) -
shouldPropagateInDirection
-
withLevel
private static long withLevel(long entry, int level) -
withDirection
-
withoutDirection
-