Class ChunkSkyLightSources
java.lang.Object
net.minecraft.world.level.lighting.ChunkSkyLightSources
-
Field Summary
Modifier and TypeFieldDescriptionprivate final BitStorage
private final int
private final BlockPos.MutableBlockPos
private final BlockPos.MutableBlockPos
static final int
private static final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate int
extendSourcesBelowWorld
(int p_284953_) private void
fill
(int p_285311_) void
fillFrom
(ChunkAccess p_285152_) private int
findLowestSourceBelow
(BlockGetter p_285279_, BlockPos p_285119_, BlockState p_285096_) private int
findLowestSourceY
(ChunkAccess p_285214_, int p_285171_, int p_285021_, int p_285226_) private int
get
(int p_284951_) int
int
getLowestSourceY
(int p_285247_, int p_285082_) private static int
index
(int p_284980_, int p_285277_) private static boolean
isEdgeOccluded
(BlockGetter p_285329_, BlockPos p_285258_, BlockState p_285219_, BlockPos p_285288_, BlockState p_285512_) private void
set
(int p_285323_, int p_285220_) boolean
update
(BlockGetter p_285514_, int p_284999_, int p_285358_, int p_284944_) private boolean
updateEdge
(BlockGetter p_285066_, int p_285184_, int p_285101_, BlockPos p_285446_, BlockState p_285185_, BlockPos p_285103_, BlockState p_285009_)
-
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 p_285066_, int p_285184_, int p_285101_, BlockPos p_285446_, BlockState p_285185_, BlockPos p_285103_, BlockState p_285009_) -
findLowestSourceBelow
-
isEdgeOccluded
private static boolean isEdgeOccluded(BlockGetter p_285329_, BlockPos p_285258_, BlockState p_285219_, BlockPos p_285288_, BlockState p_285512_) -
getLowestSourceY
public int getLowestSourceY(int p_285247_, int p_285082_) -
getHighestLowestSourceY
public int getHighestLowestSourceY() -
fill
private void fill(int p_285311_) -
set
private void set(int p_285323_, int p_285220_) -
get
private int get(int p_284951_) -
extendSourcesBelowWorld
private int extendSourcesBelowWorld(int p_284953_) -
index
private static int index(int p_284980_, int p_285277_)
-