Package com.hbm_m.powerarmor.resist
Class DamageResistanceHandler.ResistanceStats
java.lang.Object
com.hbm_m.powerarmor.resist.DamageResistanceHandler.ResistanceStats
- Enclosing class:
- DamageResistanceHandler
Resistance statistics for armor/entity
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanNEW: Flag for deflecting arrows/projectiles If true, arrows bounce off without dealing damage Works for both full sets and individual items -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddCategory(String type, float threshold, float resistance) getResistance(net.minecraft.world.damagesource.DamageSource source) setDeflectArrows(boolean deflects) Set whether this armor deflects arrows/projectilessetOther(float threshold, float resistance)
-
Field Details
-
exactResistances
-
categoryResistances
-
otherResistance
-
deflectsArrows
public boolean deflectsArrowsNEW: Flag for deflecting arrows/projectiles If true, arrows bounce off without dealing damage Works for both full sets and individual items
-
-
Constructor Details
-
ResistanceStats
public ResistanceStats()
-
-
Method Details
-
getResistance
public DamageResistanceHandler.Resistance getResistance(net.minecraft.world.damagesource.DamageSource source) -
addExact
public DamageResistanceHandler.ResistanceStats addExact(String type, float threshold, float resistance) -
addCategory
public DamageResistanceHandler.ResistanceStats addCategory(String type, float threshold, float resistance) -
setOther
-
setDeflectArrows
Set whether this armor deflects arrows/projectiles- Parameters:
deflects- true to enable arrow deflection
-