Package org.dark.shaders.light
Class LightData
java.lang.Object
org.dark.shaders.light.LightData
A class for reading csv data to the program so that automatic lighting can be applied.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic LightEntrygetLightData(String key, LightData.LightDataType type) Gets a copy of the requested data.static voidreadLightDataCSV(String localPath) Loads a lighting data CSV and makes that data available internally.static voidreadLightDataCSVNoOverwrite(String localPath) Loads a lighting data CSV and makes that data available internally.
-
Constructor Details
-
LightData
public LightData()
-
-
Method Details
-
getLightData
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
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
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
-