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 level) static longdecreaseSkipOneDirection(int level, Direction direction) static intgetFromLevel(long entry) static longincreaseLightFromEmission(int level, boolean fromEmptyShape) static longincreaseOnlyOneDirection(int level, boolean fromEmptyShape, Direction direction) static longincreaseSkipOneDirection(int level, boolean fromEmptyShape, Direction direction) static longincreaseSkySourceInDirections(boolean down, boolean north, boolean south, boolean west, boolean east) static booleanisFromEmptyShape(long entry) static booleanisIncreaseFromEmission(long entry) static booleanshouldPropagateInDirection(long entry, Direction direction) private static longwithDirection(long entry, Direction direction) private static longwithLevel(long entry, int level) private static longwithoutDirection(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
-