Package com.jozufozu.flywheel.light
Class DummyLightUpdater
java.lang.Object
com.jozufozu.flywheel.light.LightUpdater
com.jozufozu.flywheel.light.DummyLightUpdater
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidaddListener(LightListener listener) Add a listener.booleanisEmpty()voidonLightPacket(int chunkX, int chunkZ) Dispatch light updates to all registeredLightListeners when the server sends lighting data for an entire chunk.voidonLightUpdate(net.minecraft.world.level.LightLayer type, long sectionPos) Dispatch light updates to all registeredLightListeners.voidremoveListener(LightListener listener) voidtick()Methods inherited from class com.jozufozu.flywheel.light.LightUpdater
blockToSection, get, sectionToChunk
-
Field Details
-
INSTANCE
-
-
Method Details
-
tick
public void tick()- Overrides:
tickin classLightUpdater
-
addListener
Description copied from class:LightUpdaterAdd a listener.- Overrides:
addListenerin classLightUpdater- Parameters:
listener- The object that wants to receive light update notifications.
-
removeListener
- Overrides:
removeListenerin classLightUpdater
-
onLightUpdate
public void onLightUpdate(net.minecraft.world.level.LightLayer type, long sectionPos) Description copied from class:LightUpdaterDispatch light updates to all registeredLightListeners.- Overrides:
onLightUpdatein classLightUpdater- Parameters:
type- The type of light that changed.sectionPos- A long representing the section position where light changed.
-
onLightPacket
public void onLightPacket(int chunkX, int chunkZ) Description copied from class:LightUpdaterDispatch light updates to all registeredLightListeners when the server sends lighting data for an entire chunk.- Overrides:
onLightPacketin classLightUpdater
-
getAllBoxes
- Overrides:
getAllBoxesin classLightUpdater
-
isEmpty
public boolean isEmpty()- Overrides:
isEmptyin classLightUpdater
-