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

public abstract class WerewolfWeakeningEffect extends WerewolvesEffect
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static interface 
     
    protected static final record 
     
  • Field Summary

    Fields inherited from class net.minecraft.world.effect.MobEffect

    CODEC, STREAM_CODEC

    Fields inherited from interface net.minecraft.world.flag.FeatureElement

    FILTERED_REGISTRIES
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addAttributeModifiers(@NotNull net.minecraft.world.entity.ai.attributes.AttributeMap attributeMap, int amplifier)
     
    void
    addAttributeModifiers(net.minecraft.world.entity.LivingEntity livingEntity, @NotNull net.minecraft.world.entity.ai.attributes.AttributeMap attributeMap, int pAmplifier)
     
    boolean
    applyEffectTick(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>
     
    void
    onEffectStarted(@NotNull net.minecraft.world.entity.LivingEntity entity, int amplifier)
     
    void
    removeAttributeModifiers(@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, withSoundOnAdded

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface net.minecraft.world.flag.FeatureElement

    isEnabled

    Methods inherited from interface net.neoforged.neoforge.common.extensions.IMobEffectExtension

    fillEffectCures, getSortOrder
  • Constructor Details

  • Method Details

    • applyEffectTick

      public boolean applyEffectTick(@Nonnull net.minecraft.world.entity.LivingEntity entityLivingBaseIn, int amplifier)
      Overrides:
      applyEffectTick in class net.minecraft.world.effect.MobEffect
    • onEffectStarted

      public void onEffectStarted(@NotNull @NotNull net.minecraft.world.entity.LivingEntity entity, int amplifier)
      Overrides:
      onEffectStarted in class net.minecraft.world.effect.MobEffect
    • addAttributeModifiers

      public void addAttributeModifiers(@NotNull @NotNull net.minecraft.world.entity.ai.attributes.AttributeMap attributeMap, int amplifier)
      Overrides:
      addAttributeModifiers in class net.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:
      removeAttributeModifiers in class net.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)