Class ChunkSkyLightSources
java.lang.Object
net.minecraft.world.level.lighting.ChunkSkyLightSources
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BitStorageprivate final intprivate final BlockPos.MutableBlockPosprivate final BlockPos.MutableBlockPosstatic final intprivate static final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate intextendSourcesBelowWorld(int pY) private voidfill(int pValue) voidfillFrom(ChunkAccess pChunk) private intfindLowestSourceBelow(BlockGetter pLevel, BlockPos pPos, BlockState pState) private intfindLowestSourceY(ChunkAccess pChunk, int pSectionIndex, int pX, int pZ) private intget(int pIndex) intintgetLowestSourceY(int pX, int pZ) private static intindex(int pX, int pZ) private static booleanisEdgeOccluded(BlockState pState1, BlockState pState2) private voidset(int pIndex, int pValue) booleanupdate(BlockGetter pLevel, int pX, int pY, int pZ) private booleanupdateEdge(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)
-