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 intprivate static final longprivate static final longprivate static final longprivate static final intprivate static final long -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic longdecreaseAllDirections(int pLevel) static longdecreaseSkipOneDirection(int pLevel, Direction pDirection) static intgetFromLevel(long pEntry) static longincreaseLightFromEmission(int pLevel, boolean pFromEmptyShape) static longincreaseOnlyOneDirection(int pLevel, boolean pFromEmptyShape, Direction pDirection) static longincreaseSkipOneDirection(int pLevel, boolean pFromEmptyShape, Direction pDirection) static longincreaseSkySourceInDirections(boolean pDown, boolean pNorth, boolean pSouth, boolean pWest, boolean pEast) static booleanisFromEmptyShape(long pEntry) static booleanisIncreaseFromEmission(long pEntry) static booleanshouldPropagateInDirection(long pEntry, Direction pDirection) private static longwithDirection(long pEntry, Direction pDirection) private static longwithLevel(long pEntry, int pLevel) private static longwithoutDirection(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
-