Class BrokenArmorEffect
java.lang.Object
net.minecraft.world.effect.MobEffect
tech.anonymoushacker1279.immersiveweapons.potion.BasicMobEffect
tech.anonymoushacker1279.immersiveweapons.potion.BrokenArmorEffect
- All Implemented Interfaces:
net.minecraft.world.flag.FeatureElement,net.neoforged.neoforge.common.extensions.IMobEffectExtension
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.effect.MobEffect
net.minecraft.world.effect.MobEffect.AttributeTemplate -
Field Summary
Fields inherited from class net.minecraft.world.effect.MobEffect
CODEC, STREAM_CODECFields inherited from interface net.minecraft.world.flag.FeatureElement
FILTERED_REGISTRIES -
Constructor Summary
ConstructorsConstructorDescriptionBrokenArmorEffect(net.minecraft.world.effect.MobEffectCategory category, int color) -
Method Summary
Methods inherited from class net.minecraft.world.effect.MobEffect
addAttributeModifier, addAttributeModifier, addAttributeModifiers, applyEffectTick, applyInstantenousEffect, createModifiers, createParticleOptions, getBlendInDurationTicks, getBlendOutAdvanceTicks, getBlendOutDurationTicks, getCategory, getColor, getDescriptionId, getDisplayName, getOrCreateDescriptionId, isInstantenous, onEffectAdded, onEffectStarted, onMobHurt, onMobRemoved, removeAttributeModifiers, requiredFeatures, requiredFeatures, setBlendDuration, setBlendDuration, shouldApplyEffectTickThisTick, withSoundOnAddedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.world.flag.FeatureElement
isEnabledMethods inherited from interface net.neoforged.neoforge.common.extensions.IMobEffectExtension
getSortOrder
-
Constructor Details
-
BrokenArmorEffect
public BrokenArmorEffect(net.minecraft.world.effect.MobEffectCategory category, int color)
-
-
Method Details
-
isBeneficial
public boolean isBeneficial()- Overrides:
isBeneficialin classnet.minecraft.world.effect.MobEffect
-
calculateArmorBreach
public float calculateArmorBreach(int level)
-