类 SkyLightEngine
java.lang.Object
net.minecraft.world.level.lighting.LightEngine<SkyLightSectionStorage.SkyDataLayerStorageMap,SkyLightSectionStorage>
net.minecraft.world.level.lighting.SkyLightEngine
- 所有已实现的接口:
LayerLightEventListener
,LightEventListener
public final class SkyLightEngine
extends LightEngine<SkyLightSectionStorage.SkyDataLayerStorageMap,SkyLightSectionStorage>
-
嵌套类概要
从类继承的嵌套类/接口 net.minecraft.world.level.lighting.LightEngine
LightEngine.QueueEntry
从接口继承的嵌套类/接口 net.minecraft.world.level.lighting.LayerLightEventListener
LayerLightEventListener.DummyLightLayerEventListener
-
字段概要
字段修饰符和类型字段说明private static final long
private final ChunkSkyLightSources
private final BlockPos.MutableBlockPos
private static final long
private static final long
从类继承的字段 net.minecraft.world.level.lighting.LightEngine
chunkSource, MAX_LEVEL, MIN_OPACITY, PROPAGATION_DIRECTIONS, PULL_LIGHT_IN_ENTRY, storage
-
构造器概要
构造器限定符构造器说明SkyLightEngine
(LightChunkGetter p_75843_) protected
SkyLightEngine
(LightChunkGetter p_282215_, SkyLightSectionStorage p_282341_) -
方法概要
修饰符和类型方法说明private void
addSourcesAbove
(int p_285241_, int p_285212_, int p_284972_, int p_285134_) protected void
checkNode
(long p_75859_) private int
countEmptySectionsBelowIfAtBorder
(long p_285356_) private static boolean
crossedSectionEdge
(Direction p_285014_, int p_284991_, int p_285468_) private ChunkSkyLightSources
getChunkSources
(int p_285270_, int p_285307_) private int
getLowestSourceY
(int p_285058_, int p_285191_, int p_285111_) private static boolean
isSourceLevel
(int p_285004_) protected void
propagateDecrease
(long p_285015_, long p_285395_) private void
propagateFromEmptySections
(long p_284965_, Direction p_285308_, int p_284977_, boolean p_285001_, int p_285052_) protected void
propagateIncrease
(long p_285341_, long p_285204_, int p_285003_) void
propagateLightSources
(ChunkPos p_285333_) private void
removeSourcesBelow
(int p_285475_, int p_285138_, int p_285130_, int p_285112_) void
setLightEnabled
(ChunkPos p_285459_, boolean p_285013_) private void
updateSourcesInColumn
(int p_285053_, int p_285140_, int p_285337_) 从类继承的方法 net.minecraft.world.level.lighting.LightEngine
checkBlock, enqueueDecrease, enqueueIncrease, getChunk, getDataLayerData, getDebugData, getDebugSectionType, getLightBlockInto, getLightValue, getOcclusionShape, getOpacity, getState, hasDifferentLightProperties, hasLightWork, isEmptyShape, queueSectionData, retainData, runLightUpdates, shapeOccludes, updateSectionStatus
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 net.minecraft.world.level.lighting.LightEventListener
updateSectionStatus
-
字段详细资料
-
REMOVE_TOP_SKY_SOURCE_ENTRY
private static final long REMOVE_TOP_SKY_SOURCE_ENTRY -
REMOVE_SKY_SOURCE_ENTRY
private static final long REMOVE_SKY_SOURCE_ENTRY -
ADD_SKY_SOURCE_ENTRY
private static final long ADD_SKY_SOURCE_ENTRY -
mutablePos
-
emptyChunkSources
-
-
构造器详细资料
-
SkyLightEngine
-
SkyLightEngine
@VisibleForTesting protected SkyLightEngine(LightChunkGetter p_282215_, SkyLightSectionStorage p_282341_)
-
-
方法详细资料
-
isSourceLevel
private static boolean isSourceLevel(int p_285004_) -
getLowestSourceY
private int getLowestSourceY(int p_285058_, int p_285191_, int p_285111_) -
getChunkSources
-
checkNode
protected void checkNode(long p_75859_) -
updateSourcesInColumn
private void updateSourcesInColumn(int p_285053_, int p_285140_, int p_285337_) -
removeSourcesBelow
private void removeSourcesBelow(int p_285475_, int p_285138_, int p_285130_, int p_285112_) -
addSourcesAbove
private void addSourcesAbove(int p_285241_, int p_285212_, int p_284972_, int p_285134_) -
propagateIncrease
protected void propagateIncrease(long p_285341_, long p_285204_, int p_285003_) -
propagateDecrease
protected void propagateDecrease(long p_285015_, long p_285395_) -
countEmptySectionsBelowIfAtBorder
private int countEmptySectionsBelowIfAtBorder(long p_285356_) -
propagateFromEmptySections
private void propagateFromEmptySections(long p_284965_, Direction p_285308_, int p_284977_, boolean p_285001_, int p_285052_) -
crossedSectionEdge
-
setLightEnabled
-
propagateLightSources
-