类 LevelLightEngine
java.lang.Object
net.minecraft.world.level.lighting.LevelLightEngine
- 所有已实现的接口:
LightEventListener
- 直接已知子类:
ThreadedLevelLightEngine
-
字段概要
字段修饰符和类型字段说明private final LightEngine<?,
?> protected final LevelHeightAccessor
static final int
private final LightEngine<?,
?> -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明void
checkBlock
(BlockPos pPos) getDebugData
(LightLayer pLightLayer, SectionPos pSectionPos) getDebugSectionType
(LightLayer pLightLayer, SectionPos pSectionPos) getLayerListener
(LightLayer pType) int
int
int
int
getRawBrightness
(BlockPos pBlockPos, int pAmount) boolean
boolean
lightOnInSection
(SectionPos pSectionPos) void
propagateLightSources
(ChunkPos pChunkPos) void
queueSectionData
(LightLayer pLightLayer, SectionPos pSectionPos, DataLayer pDataLayer) void
retainData
(ChunkPos pPos, boolean pRetain) int
void
setLightEnabled
(ChunkPos pChunkPos, boolean pLightEnabled) void
updateSectionStatus
(SectionPos pPos, boolean pIsEmpty) 从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 net.minecraft.world.level.lighting.LightEventListener
updateSectionStatus
-
字段详细资料
-
LIGHT_SECTION_PADDING
public static final int LIGHT_SECTION_PADDING- 另请参阅:
-
levelHeightAccessor
-
blockEngine
-
skyEngine
-
-
构造器详细资料
-
LevelLightEngine
-
-
方法详细资料
-
checkBlock
- 指定者:
checkBlock
在接口中LightEventListener
-
hasLightWork
public boolean hasLightWork()- 指定者:
hasLightWork
在接口中LightEventListener
-
runLightUpdates
public int runLightUpdates()- 指定者:
runLightUpdates
在接口中LightEventListener
-
updateSectionStatus
- 指定者:
updateSectionStatus
在接口中LightEventListener
-
setLightEnabled
- 指定者:
setLightEnabled
在接口中LightEventListener
-
propagateLightSources
- 指定者:
propagateLightSources
在接口中LightEventListener
-
getLayerListener
-
getDebugData
-
getDebugSectionType
public LayerLightSectionStorage.SectionType getDebugSectionType(LightLayer pLightLayer, SectionPos pSectionPos) -
queueSectionData
public void queueSectionData(LightLayer pLightLayer, SectionPos pSectionPos, @Nullable DataLayer pDataLayer) -
retainData
-
getRawBrightness
-
lightOnInSection
-
getLightSectionCount
public int getLightSectionCount() -
getMinLightSection
public int getMinLightSection() -
getMaxLightSection
public int getMaxLightSection()
-