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 oldFromLevel) static longdecreaseSkipOneDirection(int oldFromLevel, Direction skipDirection) static intgetFromLevel(long entry) static longincreaseLightFromEmission(int newFromLevel, boolean fromEmptyShape) static longincreaseOnlyOneDirection(int newFromLevel, boolean fromEmptyShape, Direction direction) static longincreaseSkipOneDirection(int newFromLevel, boolean fromEmptyShape, Direction skipDirection) 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 oldFromLevel) -
increaseLightFromEmission
public static long increaseLightFromEmission(int newFromLevel, boolean fromEmptyShape) -
increaseSkipOneDirection
public static long increaseSkipOneDirection(int newFromLevel, boolean fromEmptyShape, Direction skipDirection) -
increaseOnlyOneDirection
public static long increaseOnlyOneDirection(int newFromLevel, boolean fromEmptyShape, Direction direction) -
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
-