Class AmethysmEffect

java.lang.Object
net.minecraft.entity.effect.StatusEffect
com.bleudev.nine_lifes.custom.effect.AmethysmEffect
All Implemented Interfaces:
net.minecraft.resource.featuretoggle.ToggleableFeature

public class AmethysmEffect extends net.minecraft.entity.effect.StatusEffect
  • Field Summary

    Fields inherited from class net.minecraft.entity.effect.StatusEffect

    ENTRY_CODEC, ENTRY_PACKET_CODEC

    Fields inherited from interface net.minecraft.resource.featuretoggle.ToggleableFeature

    FEATURE_ENABLED_REGISTRY_KEYS
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    applyUpdateEffect(net.minecraft.server.world.ServerWorld world, net.minecraft.entity.LivingEntity entity, int amplifier)
     
    boolean
    canApplyUpdateEffect(int duration, int amplifier)
     
    void
    onApplied(net.minecraft.entity.LivingEntity entity, int amplifier)
     
    void
    onRemoved(net.minecraft.entity.attribute.AttributeContainer attributeContainer)
     

    Methods inherited from class net.minecraft.entity.effect.StatusEffect

    addAttributeModifier, applyInstantEffect, applySound, createParticle, fadeTicks, fadeTicks, forEachAttributeModifier, getCategory, getColor, getFadeInTicks, getFadeOutThresholdTicks, getFadeOutTicks, getName, getRequiredFeatures, getTranslationKey, isBeneficial, isInstant, loadTranslationKey, onApplied, onEntityDamage, onEntityRemoval, playApplySound, requires

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface net.minecraft.resource.featuretoggle.ToggleableFeature

    isEnabled
  • Constructor Details

    • AmethysmEffect

      public AmethysmEffect()
  • Method Details

    • canApplyUpdateEffect

      public boolean canApplyUpdateEffect(int duration, int amplifier)
      Overrides:
      canApplyUpdateEffect in class net.minecraft.entity.effect.StatusEffect
    • applyUpdateEffect

      public boolean applyUpdateEffect(net.minecraft.server.world.ServerWorld world, net.minecraft.entity.LivingEntity entity, int amplifier)
      Overrides:
      applyUpdateEffect in class net.minecraft.entity.effect.StatusEffect
    • onApplied

      public void onApplied(net.minecraft.entity.LivingEntity entity, int amplifier)
      Overrides:
      onApplied in class net.minecraft.entity.effect.StatusEffect
    • onRemoved

      public void onRemoved(net.minecraft.entity.attribute.AttributeContainer attributeContainer)
      Overrides:
      onRemoved in class net.minecraft.entity.effect.StatusEffect