Enum Class AccessoryItem.EffectType
java.lang.Object
java.lang.Enum<AccessoryItem.EffectType>
tech.anonymoushacker1279.immersiveweapons.item.AccessoryItem.EffectType
- All Implemented Interfaces:
Serializable,Comparable<AccessoryItem.EffectType>,Constable
- Enclosing class:
- AccessoryItem
An enum of accessory effects.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionChance forBleedingEffectto be cancelled each damage tick.Modifier toBleedingEffectdamage.Modifier to all incoming damage sources.Modifier for experience drops.Chance for firearms to not consume ammo.Modifier for reload time for firearms.Modifier to all outgoing damage sources.Chance for attacks to inflictMobEffects.WITHER.Chance for melee attacks to inflictBleedingEffect.Chance for any melee attack to become critical, regardless of vanilla critical hit conditions.Modifier to melee critical damage.Modifier for melee damage.Modifier to melee knockback.Modifier for projectile damage. -
Method Summary
Modifier and TypeMethodDescriptionstatic AccessoryItem.EffectTypeReturns the enum constant of this class with the specified name.static AccessoryItem.EffectType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FIREARM_AMMO_CONSERVATION_CHANCE
Chance for firearms to not consume ammo. -
FIREARM_RELOAD_SPEED
Modifier for reload time for firearms. -
MELEE_DAMAGE
Modifier for melee damage. -
PROJECTILE_DAMAGE
Modifier for projectile damage. -
GENERAL_DAMAGE
Modifier to all outgoing damage sources. -
DAMAGE_RESISTANCE
Modifier to all incoming damage sources. -
MELEE_KNOCKBACK
Modifier to melee knockback. -
MELEE_BLEED_CHANCE
Chance for melee attacks to inflictBleedingEffect. -
MELEE_CRIT_DAMAGE_BONUS
Modifier to melee critical damage. Additive with vanilla critical damage, which is 50% by default. For example, a value of 0.5d will result in 100% critical damage. -
MELEE_CRIT_CHANCE
Chance for any melee attack to become critical, regardless of vanilla critical hit conditions. -
BLEED_CANCEL_CHANCE
Chance forBleedingEffectto be cancelled each damage tick. -
BLEED_RESISTANCE
Modifier toBleedingEffectdamage. -
GENERAL_WITHER_CHANCE
Chance for attacks to inflictMobEffects.WITHER. -
EXPERIENCE_MODIFIER
Modifier for experience drops.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-