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 Type
    Method
    Description
    int
     
    setBlockLight(int blockLight)
     
    setSkyLight(int skyLight)
     
    default D
    updateLight(net.minecraft.world.level.BlockAndTintGetter level, net.minecraft.core.BlockPos pos)
     
  • Method Details

    • setBlockLight

      D setBlockLight(int blockLight)
      Parameters:
      blockLight - An integer in the range [0, 15] representing the amount of block light this instance should receive.
      Returns:
      this
    • setSkyLight

      D setSkyLight(int skyLight)
      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()