Class LightData

java.lang.Object
org.dark.shaders.light.LightData

public class LightData extends Object
A class for reading csv data to the program so that automatic lighting can be applied.

  • Constructor Details

    • LightData

      public LightData()
  • Method Details

    • getLightData

      public static LightEntry getLightData(String key, LightData.LightDataType type)
      Gets a copy of the requested data. Returns null if no such LightData entry exists.

      Parameters:
      key - The ID of the desired projectile or weapon (for beams) light data.
      type - Whether the desired object is a projectile or a beam.

      Returns:
      The requested data. Null if no such LightData entry exists.
    • readLightDataCSV

      public static void readLightDataCSV(String localPath)
      Loads a lighting data CSV and makes that data available internally. Duplicate entries will replace previous data.

      Parameters:
      localPath - The local path to the csv file (ex. "data/lights/core_light_data.csv").
    • readLightDataCSVNoOverwrite

      public static void readLightDataCSVNoOverwrite(String localPath)
      Loads a lighting data CSV and makes that data available internally. Duplicate entries will NOT replace previous data.

      Parameters:
      localPath - The local path to the csv file (ex. "data/lights/core_light_data.csv").

      Since:
      Alpha 1.03