Class BasicMobEffect

java.lang.Object
net.minecraft.world.effect.MobEffect
dev.latvian.mods.kubejs.misc.BasicMobEffect
All Implemented Interfaces:
net.minecraft.world.flag.FeatureElement, net.neoforged.neoforge.common.extensions.IMobEffectExtension

public class BasicMobEffect extends net.minecraft.world.effect.MobEffect
  • Nested Class Summary

    Nested classes/interfaces inherited from class net.minecraft.world.effect.MobEffect

    net.minecraft.world.effect.MobEffect.AttributeTemplate
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
     

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

    attributeModifiers, CODEC, STREAM_CODEC

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

    FILTERED_REGISTRIES
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.world.effect.MobEffect
    addAttributeModifier(net.minecraft.core.Holder<net.minecraft.world.entity.ai.attributes.Attribute> attribute, net.minecraft.resources.ResourceLocation id, double d, net.minecraft.world.entity.ai.attributes.AttributeModifier.Operation operation)
     
    boolean
    applyEffectTick(@NotNull net.minecraft.world.entity.LivingEntity entity, int i)
     
    boolean
     
    void
    onEffectStarted(net.minecraft.world.entity.LivingEntity livingEntity, int amplifier)
     
    void
    onMobRemoved(net.minecraft.world.entity.LivingEntity livingEntity, int amplifier, net.minecraft.world.entity.Entity.RemovalReason reason)
     
    void
    removeAttributeModifiers(net.minecraft.world.entity.ai.attributes.AttributeMap attributeMap)
     
    boolean
     

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

    addAttributeModifier, addAttributeModifiers, applyInstantenousEffect, createModifiers, createParticleOptions, getBlendDurationTicks, getCategory, getColor, getDescriptionId, getDisplayName, getOrCreateDescriptionId, initializeClient, isBeneficial, onEffectAdded, onMobHurt, requiredFeatures, requiredFeatures, setBlendDuration, 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
  • Field Details

  • Constructor Details

  • Method Details

    • applyEffectTick

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

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

      public void onMobRemoved(net.minecraft.world.entity.LivingEntity livingEntity, int amplifier, net.minecraft.world.entity.Entity.RemovalReason reason)
      Overrides:
      onMobRemoved in class net.minecraft.world.effect.MobEffect
    • removeAttributeModifiers

      public void removeAttributeModifiers(net.minecraft.world.entity.ai.attributes.AttributeMap attributeMap)
      Overrides:
      removeAttributeModifiers in class net.minecraft.world.effect.MobEffect
    • addAttributeModifier

      public net.minecraft.world.effect.MobEffect addAttributeModifier(net.minecraft.core.Holder<net.minecraft.world.entity.ai.attributes.Attribute> attribute, net.minecraft.resources.ResourceLocation id, double d, net.minecraft.world.entity.ai.attributes.AttributeModifier.Operation operation)
      Overrides:
      addAttributeModifier in class net.minecraft.world.effect.MobEffect
    • isInstantenous

      public boolean isInstantenous()
      Overrides:
      isInstantenous in class net.minecraft.world.effect.MobEffect
    • shouldApplyEffectTickThisTick

      public boolean shouldApplyEffectTickThisTick(int i, int j)
      Overrides:
      shouldApplyEffectTickThisTick in class net.minecraft.world.effect.MobEffect