Added interfaces to energy data, refactored names

This commit is contained in:
Vidal committed 2026-02-03 15:45:45 -03:00
1 parent 87d511c38e
commit 75de803700
24 files changed
+340 -79

No files matched your search

@@ -88,11 +88,11 @@ public class EntityAbilityLaser extends EntityAbilityProjectile {
* Full constructor with all parameters using data classes.
*/
public EntityAbilityLaser(World world, EntityLivingBase owner, EntityLivingBase target,
double x, double y, double z,
float laserWidth,
EnergyColorData color, EnergyCombatData combat,
EnergyLightningData lightning, EnergyLifespanData lifespan,
float expansionSpeed, int lingerTicks) {
double x, double y, double z,
float laserWidth,
EnergyDisplayData color, EnergyCombatData combat,
EnergyLightningData lightning, EnergyLifespanData lifespan,
float expansionSpeed, int lingerTicks) {
super(world);
// Initialize base properties (laser doesn't rotate)
@@ -481,7 +481,7 @@ public class EntityAbilityLaser extends EntityAbilityProjectile {
* Setup this laser in preview mode for GUI display.
* Laser doesn't have charging state - spawns at active phase and fires immediately.
*/
public void setupPreview(EntityLivingBase owner, float laserWidth, EnergyColorData color,
public void setupPreview(EntityLivingBase owner, float laserWidth, EnergyDisplayData color,
EnergyLightningData lightning, float expansionSpeed, float maxDistance) {
this.setPreviewMode(true);
this.setPreviewOwner(owner);