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 value) private voidfill(int lowestSourceY) voidfillFrom(ChunkAccess chunk) private intfindLowestSourceBelow(BlockGetter level, BlockPos startPos, BlockState startState) private intfindLowestSourceY(ChunkAccess chunk, int topSectionIndex, int x, int z) private intget(int index) intintgetLowestSourceY(int x, int z) private static intindex(int x, int z) private static booleanisEdgeOccluded(BlockState topState, BlockState bottomState) private voidset(int index, int value) booleanupdate(BlockGetter level, int x, int y, int z) private booleanupdateEdge(BlockGetter level, int index, int oldTopEdgeY, BlockPos topPos, BlockState topState, BlockPos bottomPos, BlockState bottomState)
-
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 level, int index, int oldTopEdgeY, BlockPos topPos, BlockState topState, BlockPos bottomPos, BlockState bottomState) -
findLowestSourceBelow
-
isEdgeOccluded
-
getLowestSourceY
public int getLowestSourceY(int x, int z) -
getHighestLowestSourceY
public int getHighestLowestSourceY() -
fill
private void fill(int lowestSourceY) -
set
private void set(int index, int value) -
get
private int get(int index) -
extendSourcesBelowWorld
private int extendSourcesBelowWorld(int value) -
index
private static int index(int x, int z)
-