public class LightingProvider extends Object implements LightingView
Modifier and Type | Field and Description |
---|---|
private ChunkLightProvider<?,?> |
blockLightProvider |
private ChunkLightProvider<?,?> |
skyLightProvider |
Constructor and Description |
---|
LightingProvider(ChunkProvider chunkProvider,
boolean hasBlockLight,
boolean hasSkyLight) |
Modifier and Type | Method and Description |
---|---|
void |
addLightSource(BlockPos pos,
int level) |
void |
checkBlock(BlockPos pos) |
String |
displaySectionLevel(LightType lightType,
ChunkSectionPos chunkSectionPos) |
int |
doLightUpdates(int maxUpdateCount,
boolean doSkylight,
boolean skipEdgeLightPropagation) |
void |
enqueueSectionData(LightType lightType,
ChunkSectionPos pos,
ChunkNibbleArray nibbles,
boolean bool) |
ChunkLightingView |
get(LightType lightType) |
int |
getLight(BlockPos pos,
int ambientDarkness) |
boolean |
hasUpdates() |
void |
setColumnEnabled(ChunkPos pos,
boolean lightEnabled) |
void |
setRetainData(ChunkPos pos,
boolean retainData) |
void |
setSectionStatus(ChunkSectionPos pos,
boolean notReady) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setSectionStatus
@Nullable private final ChunkLightProvider<?,?> blockLightProvider
@Nullable private final ChunkLightProvider<?,?> skyLightProvider
public LightingProvider(ChunkProvider chunkProvider, boolean hasBlockLight, boolean hasSkyLight)
public void checkBlock(BlockPos pos)
public void addLightSource(BlockPos pos, int level)
public boolean hasUpdates()
public int doLightUpdates(int maxUpdateCount, boolean doSkylight, boolean skipEdgeLightPropagation)
public void setSectionStatus(ChunkSectionPos pos, boolean notReady)
setSectionStatus
in interface LightingView
public void setColumnEnabled(ChunkPos pos, boolean lightEnabled)
public ChunkLightingView get(LightType lightType)
@Environment(value=CLIENT) public String displaySectionLevel(LightType lightType, ChunkSectionPos chunkSectionPos)
public void enqueueSectionData(LightType lightType, ChunkSectionPos pos, @Nullable ChunkNibbleArray nibbles, boolean bool)
public void setRetainData(ChunkPos pos, boolean retainData)
public int getLight(BlockPos pos, int ambientDarkness)