Class CombatEntityIlluminantData
java.lang.Object
org.boxutil.units.standard.attribute.CombatEntityIlluminantData
For how to use custom illuminant data for any combat entity(only for ship and projectile):
CombatEntityIlluminantData flag = new CombatEntityIlluminantData();
// *here any setting for flag*
combatEntity.setCustomData(CombatEntityIlluminantData.KEY, flag);
------------
For block the illuminant autogen or none illuminant, add to tags in ship_data.csv:
ogl_NoneIlluminant
dweller (for vanilla compatible)
See BoxDatabase.NONE_ILLUMINANT_FLAG
If any ship have the tags, will not autogen illuminant for each ship engine.
If any weapon have the tags, will not autogen illuminant for *beam* or projectile that spawn by the weapon.
If any weapon have the tags, and it is *beam* weapon: you might have to making an illuminant entity, and add to rendering manager by manual.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringbooleanFor all.The valuenullfor no illuminant spawn this frame.floatThe value less than or equals0.0ffor no illuminant spawn this frame.The valuenullfor no illuminant spawn when the projectile did damage.floatThe value less than or equals0.0ffor no illuminant spawn when the projectile did damage.floatThe value less than or equals0.0ffor no illuminant spawn when the projectile did damage.The valuenullfor no illuminant spawn when the projectile spawn.floatThe value less than or equals0.0ffor no illuminant spawn when the projectile spawn.floatThe value less than or equals0.0ffor no illuminant spawn when the projectile spawn.The valuenullfor no illuminant spawn this frame.floatThe value less than or equals0.0ffor no illuminant spawn this frame.booleanThe valuetruefor mix this color to original color, not overwrite it. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
KEY
-
noneIlluminant
public boolean noneIlluminantFor all. -
SHIP_engineColor
The valuenullfor no illuminant spawn this frame.The alpha for strength scale.
-
SHIP_MUL_MODE
public boolean SHIP_MUL_MODEThe valuetruefor mix this color to original color, not overwrite it. -
SHIP_engineRadius
public float SHIP_engineRadiusThe value less than or equals0.0ffor no illuminant spawn this frame. -
PROJ_spawnColor
The valuenullfor no illuminant spawn when the projectile spawn.The alpha for strength scale.
-
PROJ_spawnRadius
public float PROJ_spawnRadiusThe value less than or equals0.0ffor no illuminant spawn when the projectile spawn. -
PROJ_spawnDuration
public float PROJ_spawnDurationThe value less than or equals0.0ffor no illuminant spawn when the projectile spawn. -
PROJ_bodyColor
The valuenullfor no illuminant spawn this frame.The alpha for strength scale.
-
PROJ_bodyRadius
public float PROJ_bodyRadiusThe value less than or equals0.0ffor no illuminant spawn this frame. -
PROJ_hitColor
The valuenullfor no illuminant spawn when the projectile did damage.The alpha for strength scale.
-
PROJ_hitRadius
public float PROJ_hitRadiusThe value less than or equals0.0ffor no illuminant spawn when the projectile did damage. -
PROJ_hitDuration
public float PROJ_hitDurationThe value less than or equals0.0ffor no illuminant spawn when the projectile did damage.
-
-
Constructor Details
-
CombatEntityIlluminantData
public CombatEntityIlluminantData()
-