Interface FlatLit<D extends InstanceData & FlatLit<D>>
- Type Parameters:
D- The name of the class that implements this interface.
- All Known Implementing Classes:
BasicData,ModelData,OrientedData
public interface FlatLit<D extends InstanceData & FlatLit<D>>
An interface that implementors of
InstanceData should also implement
if they wish to make use of Flywheel's provided light update methods.
This only covers flat lighting, smooth lighting is still TODO.
-
Method Summary
Modifier and TypeMethodDescriptionintsetBlockLight(int blockLight) setSkyLight(int skyLight) default DupdateLight(net.minecraft.world.level.BlockAndTintGetter level, net.minecraft.core.BlockPos pos)
-
Method Details
-
setBlockLight
- Parameters:
blockLight- An integer in the range [0, 15] representing the amount of block light this instance should receive.- Returns:
this
-
setSkyLight
- Parameters:
skyLight- An integer in the range [0, 15] representing the amount of sky light this instance should receive.- Returns:
this
-
updateLight
default D updateLight(net.minecraft.world.level.BlockAndTintGetter level, net.minecraft.core.BlockPos pos) -
getPackedLight
int getPackedLight()
-