类 ChunkSkyLightSources
java.lang.Object
net.minecraft.world.level.lighting.ChunkSkyLightSources
-
字段概要
字段修饰符和类型字段说明private final BitStorage
private final int
private final BlockPos.MutableBlockPos
private final BlockPos.MutableBlockPos
static final int
private static final int
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明private 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
(BlockGetter pLevel, BlockPos pPos1, BlockState pState1, BlockPos pPos2, 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)
-
字段详细资料
-
构造器详细资料
-
ChunkSkyLightSources
-
-
方法详细资料
-
fillFrom
-
findLowestSourceY
-
update
-
updateEdge
private boolean updateEdge(BlockGetter pLevel, int pIndex, int pMinY, BlockPos pPos1, BlockState pState1, BlockPos pPos2, BlockState pState2) -
findLowestSourceBelow
-
isEdgeOccluded
private static boolean isEdgeOccluded(BlockGetter pLevel, BlockPos pPos1, BlockState pState1, BlockPos pPos2, BlockState pState2) -
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)
-