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.minecraftforge.common.extensions.IForgeMobEffect
- Direct Known Subclasses:
SilverEffect,WolfsbaneEffect
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionWerewolfWeakeningEffect(int color, List<WerewolfWeakeningEffect.Modifier> attributes) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAttributeModifiers(@NotNull net.minecraft.world.entity.LivingEntity pLivingEntity, @NotNull net.minecraft.world.entity.ai.attributes.AttributeMap pAttributeMap, int pAmplifier) voidapplyEffectTick(net.minecraft.world.entity.LivingEntity entityLivingBaseIn, int amplifier) @NotNull Map<net.minecraft.world.entity.ai.attributes.Attribute,net.minecraft.world.entity.ai.attributes.AttributeModifier> @NotNull Map<net.minecraft.world.entity.ai.attributes.Attribute,net.minecraft.world.entity.ai.attributes.AttributeModifier> getAttributeModifiers(@Nullable net.minecraft.world.entity.LivingEntity entity, int pAmplifier) voidremoveAttributeModifiers(@NotNull net.minecraft.world.entity.LivingEntity pLivingEntity, @NotNull net.minecraft.world.entity.ai.attributes.AttributeMap pAttributeMap, int pAmplifier) Methods inherited from class net.minecraft.world.effect.MobEffect
addAttributeModifier, applyInstantenousEffect, byId, createFactorData, getAttributeModifierValue, getCategory, getColor, getDescriptionId, getDisplayName, getEffectRendererInternal, getId, getIdFromNullable, getOrCreateDescriptionId, initializeClient, isBeneficial, isDurationEffectTick, isInstantenous, setFactorDataFactoryMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraftforge.common.extensions.IForgeMobEffect
getCurativeItems, 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
-
addAttributeModifiers
public void addAttributeModifiers(@NotNull @NotNull net.minecraft.world.entity.LivingEntity pLivingEntity, @NotNull @NotNull net.minecraft.world.entity.ai.attributes.AttributeMap pAttributeMap, int pAmplifier) - Overrides:
addAttributeModifiersin classnet.minecraft.world.effect.MobEffect
-
removeAttributeModifiers
public void removeAttributeModifiers(@NotNull @NotNull net.minecraft.world.entity.LivingEntity pLivingEntity, @NotNull @NotNull net.minecraft.world.entity.ai.attributes.AttributeMap pAttributeMap, int pAmplifier) - Overrides:
removeAttributeModifiersin classnet.minecraft.world.effect.MobEffect
-
getAttributeModifiers
@NotNull public @NotNull Map<net.minecraft.world.entity.ai.attributes.Attribute,net.minecraft.world.entity.ai.attributes.AttributeModifier> getAttributeModifiers(@Nullable @Nullable net.minecraft.world.entity.LivingEntity entity, int pAmplifier) -
getAttributeModifiers
@NotNull public @NotNull Map<net.minecraft.world.entity.ai.attributes.Attribute,net.minecraft.world.entity.ai.attributes.AttributeModifier> getAttributeModifiers()- Overrides:
getAttributeModifiersin classnet.minecraft.world.effect.MobEffect
-