Class BleedingEffect

java.lang.Object
net.minecraft.world.effect.MobEffect
tech.anonymoushacker1279.immersiveweapons.potion.BleedingEffect
All Implemented Interfaces:
net.minecraftforge.common.extensions.IForgeMobEffect

public class BleedingEffect extends net.minecraft.world.effect.MobEffect
  • Constructor Summary

    Constructors
    Constructor
    Description
    BleedingEffect(net.minecraft.world.effect.MobEffectCategory effectCategory, int color)
    Constructor for BleedingEffect.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    applyEffectTick(net.minecraft.world.entity.LivingEntity livingEntity, int amplifier)
    Runs once each tick while the effect is active.
    boolean
     
    boolean
    isDurationEffectTick(int duration, int amplifier)
    Check if the duration effect is ticking.

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

    addAttributeModifier, addAttributeModifiers, applyInstantenousEffect, byId, createFactorData, getAttributeModifiers, getAttributeModifierValue, getCategory, getColor, getDescriptionId, getDisplayName, getEffectRendererInternal, getId, getIdFromNullable, getOrCreateDescriptionId, initializeClient, isInstantenous, removeAttributeModifiers, setFactorDataFactory

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface net.minecraftforge.common.extensions.IForgeMobEffect

    getCurativeItems, getSortOrder
  • Constructor Details

    • BleedingEffect

      public BleedingEffect(net.minecraft.world.effect.MobEffectCategory effectCategory, int color)
      Constructor for BleedingEffect.
      Parameters:
      effectCategory - the MobEffectCategory instance
      color - the effect color
  • Method Details

    • applyEffectTick

      public void applyEffectTick(net.minecraft.world.entity.LivingEntity livingEntity, int amplifier)
      Runs once each tick while the effect is active.
      Overrides:
      applyEffectTick in class net.minecraft.world.effect.MobEffect
      Parameters:
      livingEntity - the LivingEntity with the effect
      amplifier - the effect amplifier
    • isBeneficial

      public boolean isBeneficial()
      Overrides:
      isBeneficial in class net.minecraft.world.effect.MobEffect
    • isDurationEffectTick

      public boolean isDurationEffectTick(int duration, int amplifier)
      Check if the duration effect is ticking.
      Overrides:
      isDurationEffectTick in class net.minecraft.world.effect.MobEffect
      Parameters:
      duration - the duration
      amplifier - the effect amplifier
      Returns:
      boolean