public class WorldLightManager extends java.lang.Object implements ILightListener
Modifier and Type | Field and Description |
---|---|
private LightEngine<?,?> |
blockLight |
private LightEngine<?,?> |
skyLight |
Constructor and Description |
---|
WorldLightManager(IChunkLightProvider provider,
boolean hasBlockLight,
boolean hasSkyLight) |
Modifier and Type | Method and Description |
---|---|
void |
checkBlock(BlockPos blockPosIn) |
void |
enableLightSources(ChunkPos p_215571_1_,
boolean p_215571_2_) |
java.lang.String |
getDebugInfo(LightType p_215572_1_,
SectionPos p_215572_2_) |
IWorldLightListener |
getLightEngine(LightType type) |
int |
getLightSubtracted(BlockPos blockPosIn,
int amount) |
boolean |
hasLightWork() |
void |
onBlockEmissionIncrease(BlockPos blockPosIn,
int p_215573_2_) |
void |
retainData(ChunkPos pos,
boolean retain) |
void |
setData(LightType type,
SectionPos pos,
NibbleArray array) |
int |
tick(int toUpdateCount,
boolean updateSkyLight,
boolean updateBlockLight) |
void |
updateSectionStatus(SectionPos pos,
boolean isEmpty) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
func_215567_a
@Nullable private final LightEngine<?,?> blockLight
@Nullable private final LightEngine<?,?> skyLight
public WorldLightManager(IChunkLightProvider provider, boolean hasBlockLight, boolean hasSkyLight)
public void checkBlock(BlockPos blockPosIn)
public void onBlockEmissionIncrease(BlockPos blockPosIn, int p_215573_2_)
public boolean hasLightWork()
public int tick(int toUpdateCount, boolean updateSkyLight, boolean updateBlockLight)
public void updateSectionStatus(SectionPos pos, boolean isEmpty)
updateSectionStatus
in interface ILightListener
public void enableLightSources(ChunkPos p_215571_1_, boolean p_215571_2_)
public IWorldLightListener getLightEngine(LightType type)
public java.lang.String getDebugInfo(LightType p_215572_1_, SectionPos p_215572_2_)
public void setData(LightType type, SectionPos pos, @Nullable NibbleArray array)
public void retainData(ChunkPos pos, boolean retain)
public int getLightSubtracted(BlockPos blockPosIn, int amount)