Package com.jozufozu.flywheel.light
Class GPULightVolume
java.lang.Object
com.jozufozu.flywheel.light.LightVolume
com.jozufozu.flywheel.light.GPULightVolume
- All Implemented Interfaces:
LightListener,ImmutableBox
-
Field Summary
FieldsFields inherited from class com.jozufozu.flywheel.light.LightVolume
box, level, lightData -
Constructor Summary
ConstructorsConstructorDescriptionGPULightVolume(net.minecraft.world.level.BlockAndTintGetter level, ImmutableBox sampleVolume) -
Method Summary
Modifier and TypeMethodDescriptionvoidbind()voiddelete()protected voidvoidmove(ImmutableBox newSampleVolume) protected voidsetBox(ImmutableBox box) voidunbind()Methods inherited from class com.jozufozu.flywheel.light.LightVolume
boxPosToBufferIndex, copyBlock, copyLight, copySky, getMaxX, getMaxY, getMaxZ, getMinX, getMinY, getMinZ, getPackedLight, initialize, isListenerInvalid, onLightPacket, onLightUpdate, worldPosToBufferIndex, writeBlock, writeLight, writeSkyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.jozufozu.flywheel.util.box.ImmutableBox
contains, contains, copy, empty, forEachContained, hasPowerOf2Sides, intersect, intersects, intersects, isContainedBy, sameAs, sameAs, sameAs, sizeX, sizeY, sizeZ, toAABB, union, volume
-
Field Details
-
sampleVolume
-
bufferDirty
protected boolean bufferDirty
-
-
Constructor Details
-
GPULightVolume
public GPULightVolume(net.minecraft.world.level.BlockAndTintGetter level, ImmutableBox sampleVolume)
-
-
Method Details
-
setBox
- Overrides:
setBoxin classLightVolume
-
bind
public void bind() -
unbind
public void unbind() -
delete
public void delete()- Overrides:
deletein classLightVolume
-
move
- Overrides:
movein classLightVolume
-
getVolume
- Specified by:
getVolumein interfaceLightListener- Overrides:
getVolumein classLightVolume
-
markDirty
protected void markDirty()- Overrides:
markDirtyin classLightVolume
-