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.minecraft.world.flag.FeatureElement,net.neoforged.neoforge.common.extensions.IMobEffectExtension
- Direct Known Subclasses:
SilverEffect,WolfsbaneEffect
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceprotected static final record -
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
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) booleanapplyEffectTick(net.minecraft.world.entity.LivingEntity entityLivingBaseIn, int amplifier) @NotNull Map<net.minecraft.core.Holder<net.minecraft.world.entity.ai.attributes.Attribute>, WerewolfWeakeningEffect.AttributeTemplate> getAttributeModifiers(@Nullable net.minecraft.world.entity.LivingEntity entity) Map<net.minecraft.core.Holder<net.minecraft.world.entity.ai.attributes.Attribute>, net.minecraft.resources.ResourceLocation> 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, createModifiers, createParticleOptions, getBlendDurationTicks, getCategory, getColor, getDescriptionId, getDisplayName, getOrCreateDescriptionId, initializeClient, isBeneficial, isInstantenous, onEffectAdded, onMobHurt, onMobRemoved, requiredFeatures, requiredFeatures, 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
fillEffectCures, getSortOrder
-
Constructor Details
-
WerewolfWeakeningEffect
-
-
Method Details
-
applyEffectTick
public boolean 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
public Map<net.minecraft.core.Holder<net.minecraft.world.entity.ai.attributes.Attribute>,net.minecraft.resources.ResourceLocation> getAttributes() -
getAttributeModifiers
@NotNull public @NotNull Map<net.minecraft.core.Holder<net.minecraft.world.entity.ai.attributes.Attribute>,WerewolfWeakeningEffect.AttributeTemplate> getAttributeModifiers(@Nullable @Nullable net.minecraft.world.entity.LivingEntity entity)
-