Package de.teamlapen.werewolves.effects
Class WerewolfWeakeningEffect
java.lang.Object
net.minecraft.world.effect.MobEffect
de.teamlapen.werewolves.effects.WerewolvesEffect
de.teamlapen.werewolves.effects.WerewolfWeakeningEffect
- All Implemented Interfaces:
net.neoforged.neoforge.common.extensions.IMobEffectExtension
- Direct Known Subclasses:
SilverEffect,WolfsbaneEffect
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedWerewolfWeakeningEffect(int color, List<WerewolfWeakeningEffect.Modifier> attributes) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAttributeModifiers(@NotNull net.minecraft.world.entity.ai.attributes.AttributeMap attributeMap, int amplifier) voidaddAttributeModifiers(net.minecraft.world.entity.LivingEntity livingEntity, @NotNull net.minecraft.world.entity.ai.attributes.AttributeMap attributeMap, int pAmplifier) voidapplyEffectTick(net.minecraft.world.entity.LivingEntity entityLivingBaseIn, int amplifier) @NotNull Map<net.minecraft.world.entity.ai.attributes.Attribute,net.minecraft.world.effect.AttributeModifierTemplate> getAttributeModifiers(@Nullable net.minecraft.world.entity.LivingEntity entity) voidonEffectStarted(@NotNull net.minecraft.world.entity.LivingEntity entity, int amplifier) voidremoveAttributeModifiers(@NotNull net.minecraft.world.entity.ai.attributes.AttributeMap attributeMap) Methods inherited from class net.minecraft.world.effect.MobEffect
addAttributeModifier, applyInstantenousEffect, builtInRegistryHolder, createFactorData, getAttributeModifiers, getCategory, getColor, getDescriptionId, getDisplayName, getEffectRendererInternal, getOrCreateDescriptionId, initializeClient, isBeneficial, isInstantenous, setFactorDataFactory, shouldApplyEffectTickThisTickMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.neoforged.neoforge.common.extensions.IMobEffectExtension
fillEffectCures, getSortOrder
-
Constructor Details
-
WerewolfWeakeningEffect
-
-
Method Details
-
applyEffectTick
public void applyEffectTick(@Nonnull net.minecraft.world.entity.LivingEntity entityLivingBaseIn, int amplifier) - Overrides:
applyEffectTickin classnet.minecraft.world.effect.MobEffect
-
onEffectStarted
public void onEffectStarted(@NotNull @NotNull net.minecraft.world.entity.LivingEntity entity, int amplifier) - Overrides:
onEffectStartedin classnet.minecraft.world.effect.MobEffect
-
addAttributeModifiers
public void addAttributeModifiers(@NotNull @NotNull net.minecraft.world.entity.ai.attributes.AttributeMap attributeMap, int amplifier) - Overrides:
addAttributeModifiersin classnet.minecraft.world.effect.MobEffect
-
addAttributeModifiers
public void addAttributeModifiers(net.minecraft.world.entity.LivingEntity livingEntity, @NotNull @NotNull net.minecraft.world.entity.ai.attributes.AttributeMap attributeMap, int pAmplifier) -
removeAttributeModifiers
public void removeAttributeModifiers(@NotNull @NotNull net.minecraft.world.entity.ai.attributes.AttributeMap attributeMap) - Overrides:
removeAttributeModifiersin classnet.minecraft.world.effect.MobEffect
-
getAttributes
-
getAttributeModifiers
@NotNull public @NotNull Map<net.minecraft.world.entity.ai.attributes.Attribute,net.minecraft.world.effect.AttributeModifierTemplate> getAttributeModifiers(@Nullable @Nullable net.minecraft.world.entity.LivingEntity entity)
-