Package com.hbm_m.powerarmor
Class PowerArmorSpecs
java.lang.Object
com.hbm_m.powerarmor.PowerArmorSpecs
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal longfinal longintfinal longfloatfloatfloatfloatfloatfloatfloatfloatfloatfloatfloatfloatfloatfloatfloatfloatbooleanbooleanbooleanbooleanbooleanbooleanfinal longbooleanList<net.minecraft.world.effect.MobEffectInstance>floatfloatfloatfloatfloatfloatfloatfloatint -
Constructor Summary
ConstructorsConstructorDescriptionPowerArmorSpecs(long capacity, long maxReceive, long drain) Simplified constructor with default consumptionPowerArmorSpecs(long capacity, long maxReceive, long drain, long consumption) Basic constructor - matches 1.7.10 ArmorFSBPowered constructor -
Method Summary
Modifier and TypeMethodDescriptionaddEffect(net.minecraft.world.effect.MobEffectInstance effect) setDR(float fall, float explosion, float kinetic, float projectile, float fire, float cold, float radiation, float energy) Set Damage Resistance (DR) valuessetDT(float fall, float explosion, float kinetic, float projectile, float fire, float cold, float radiation, float energy) Set Damage Threshold (DT) valuessetFallSound(String fall) setFeatures(boolean vats, boolean thermal, boolean hardLanding, boolean geiger) setFeatures(boolean vats, boolean thermal, boolean hardLanding, boolean geiger, boolean customGeiger) setGeigerHUD(boolean customGeiger) setJumpSound(String jump) setMovement(float stepHeight, int dashCount) setNoHelmet(boolean noHelmet) setOverlay(String path) setProtection(float dtFall, float drFall, float dtExplosion, float drExplosion, float dtKinetic, float drKinetic, float dtProjectile, float drProjectile, float dtFire, float drFire, float dtCold, float drCold, float dtRadiation, float drRadiation, float dtEnergy, float drEnergy) Set both DT and DR for complete protection configurationsetResistances(float fall, float explosion, float kinetic, float projectile, float fire, float cold, float radiation) Set damage resistances (legacy method - sets DR values)setStepSize(int stepSize) setStepSound(String step)
-
Field Details
-
capacity
public final long capacity -
maxReceive
public final long maxReceive -
drain
public final long drain -
consumption
public final long consumption -
dtFall
public float dtFall -
dtExplosion
public float dtExplosion -
dtKinetic
public float dtKinetic -
dtProjectile
public float dtProjectile -
dtFire
public float dtFire -
dtCold
public float dtCold -
dtRadiation
public float dtRadiation -
dtEnergy
public float dtEnergy -
drFall
public float drFall -
drExplosion
public float drExplosion -
drKinetic
public float drKinetic -
drProjectile
public float drProjectile -
drFire
public float drFire -
drCold
public float drCold -
drRadiation
public float drRadiation -
drEnergy
public float drEnergy -
resFall
public float resFall -
resExplosion
public float resExplosion -
resKinetic
public float resKinetic -
resProjectile
public float resProjectile -
resFire
public float resFire -
resCold
public float resCold -
resRadiation
public float resRadiation -
hasVats
public boolean hasVats -
hasThermal
public boolean hasThermal -
hasNightVision
public boolean hasNightVision -
hasGeigerSound
public boolean hasGeigerSound -
hasCustomGeiger
public boolean hasCustomGeiger -
hasHardLanding
public boolean hasHardLanding -
noHelmetRequired
public boolean noHelmetRequired -
stepHeight
public float stepHeight -
stepSize
public int stepSize -
dashCount
public int dashCount -
stepSound
-
jumpSound
-
fallSound
-
overlay
-
passiveEffects
-
-
Constructor Details
-
PowerArmorSpecs
public PowerArmorSpecs(long capacity, long maxReceive, long drain, long consumption) Basic constructor - matches 1.7.10 ArmorFSBPowered constructor- Parameters:
capacity- Maximum energy capacitymaxReceive- Maximum energy received per tick (charging)drain- Passive energy drain per tick (when wearing full set)consumption- Energy cost per damage point (when armor takes damage)
-
PowerArmorSpecs
public PowerArmorSpecs(long capacity, long maxReceive, long drain) Simplified constructor with default consumption
-
-
Method Details
-
setResistances
public PowerArmorSpecs setResistances(float fall, float explosion, float kinetic, float projectile, float fire, float cold, float radiation) Set damage resistances (legacy method - sets DR values) -
setDT
public PowerArmorSpecs setDT(float fall, float explosion, float kinetic, float projectile, float fire, float cold, float radiation, float energy) Set Damage Threshold (DT) values -
setDR
public PowerArmorSpecs setDR(float fall, float explosion, float kinetic, float projectile, float fire, float cold, float radiation, float energy) Set Damage Resistance (DR) values -
setProtection
public PowerArmorSpecs setProtection(float dtFall, float drFall, float dtExplosion, float drExplosion, float dtKinetic, float drKinetic, float dtProjectile, float drProjectile, float dtFire, float drFire, float dtCold, float drCold, float dtRadiation, float drRadiation, float dtEnergy, float drEnergy) Set both DT and DR for complete protection configuration -
addEffect
-
setFeatures
public PowerArmorSpecs setFeatures(boolean vats, boolean thermal, boolean hardLanding, boolean geiger) -
setFeatures
public PowerArmorSpecs setFeatures(boolean vats, boolean thermal, boolean hardLanding, boolean geiger, boolean customGeiger) -
setMovement
-
setNoHelmet
-
setGeigerHUD
-
setStepSize
-
setSounds
-
setStepSound
-
setJumpSound
-
setFallSound
-
setOverlay
-