Class ChunkSkyLightSources
java.lang.Object
net.minecraft.world.level.lighting.ChunkSkyLightSources
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BitStorage
private final int
private final BlockPos.MutableBlockPos
private final BlockPos.MutableBlockPos
static final int
private static final int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate int
extendSourcesBelowWorld
(int pY) private void
fill
(int pValue) void
fillFrom
(ChunkAccess pChunk) private int
findLowestSourceBelow
(BlockGetter pLevel, BlockPos pPos, BlockState pState) private int
findLowestSourceY
(ChunkAccess pChunk, int pSectionIndex, int pX, int pZ) private int
get
(int pIndex) int
int
getLowestSourceY
(int pX, int pZ) private static int
index
(int pX, int pZ) private static boolean
isEdgeOccluded
(BlockState pState1, BlockState pState2) private void
set
(int pIndex, int pValue) boolean
update
(BlockGetter pLevel, int pX, int pY, int pZ) private boolean
updateEdge
(BlockGetter pLevel, int pIndex, int pMinY, BlockPos pPos1, BlockState pState1, BlockPos pPos2, BlockState pState2)
-
Field Details
-
SIZE
private static final int SIZE- See Also:
-
NEGATIVE_INFINITY
public static final int NEGATIVE_INFINITY- See Also:
-
minY
private final int minY -
heightmap
-
mutablePos1
-
mutablePos2
-
-
Constructor Details
-
ChunkSkyLightSources
-
-
Method Details
-
fillFrom
-
findLowestSourceY
-
update
-
updateEdge
private boolean updateEdge(BlockGetter pLevel, int pIndex, int pMinY, BlockPos pPos1, BlockState pState1, BlockPos pPos2, BlockState pState2) -
findLowestSourceBelow
-
isEdgeOccluded
-
getLowestSourceY
public int getLowestSourceY(int pX, int pZ) -
getHighestLowestSourceY
public int getHighestLowestSourceY() -
fill
private void fill(int pValue) -
set
private void set(int pIndex, int pValue) -
get
private int get(int pIndex) -
extendSourcesBelowWorld
private int extendSourcesBelowWorld(int pY) -
index
private static int index(int pX, int pZ)
-