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 pLevel) static long
decreaseSkipOneDirection
(int pLevel, Direction pDirection) static int
getFromLevel
(long pEntry) static long
increaseLightFromEmission
(int pLevel, boolean pFromEmptyShape) static long
increaseOnlyOneDirection
(int pLevel, boolean pFromEmptyShape, Direction pDirection) static long
increaseSkipOneDirection
(int pLevel, boolean pFromEmptyShape, Direction pDirection) static long
increaseSkySourceInDirections
(boolean pDown, boolean pNorth, boolean pSouth, boolean pWest, boolean pEast) static boolean
isFromEmptyShape
(long pEntry) static boolean
isIncreaseFromEmission
(long pEntry) static boolean
shouldPropagateInDirection
(long pEntry, Direction pDirection) private static long
withDirection
(long pEntry, Direction pDirection) private static long
withLevel
(long pEntry, int pLevel) private static long
withoutDirection
(long pEntry, Direction pDirection)
-
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 pLevel) -
increaseLightFromEmission
public static long increaseLightFromEmission(int pLevel, boolean pFromEmptyShape) -
increaseSkipOneDirection
public static long increaseSkipOneDirection(int pLevel, boolean pFromEmptyShape, Direction pDirection) -
increaseOnlyOneDirection
public static long increaseOnlyOneDirection(int pLevel, boolean pFromEmptyShape, Direction pDirection) -
increaseSkySourceInDirections
public static long increaseSkySourceInDirections(boolean pDown, boolean pNorth, boolean pSouth, boolean pWest, boolean pEast) -
getFromLevel
public static int getFromLevel(long pEntry) -
isFromEmptyShape
public static boolean isFromEmptyShape(long pEntry) -
isIncreaseFromEmission
public static boolean isIncreaseFromEmission(long pEntry) -
shouldPropagateInDirection
-
withLevel
private static long withLevel(long pEntry, int pLevel) -
withDirection
-
withoutDirection
-