Class InstantStatusEffect

java.lang.Object
net.minecraft.entity.effect.StatusEffect
net.minecraft.entity.effect.InstantStatusEffect
All Implemented Interfaces:
ToggleableFeature
Direct Known Subclasses:
InstantHealthOrDamageStatusEffect, SaturationStatusEffect

public class InstantStatusEffect extends StatusEffect
Mappings:
Namespace Name
named net/minecraft/entity/effect/InstantStatusEffect
intermediary net/minecraft/class_1289
official bsa
  • Constructor Details

    • InstantStatusEffect

      public InstantStatusEffect(StatusEffectCategory category, int color)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/entity/effect/StatusEffect;<init>(Lnet/minecraft/entity/effect/StatusEffectCategory;I)V
      intermediary <init> Lnet/minecraft/class_1291;<init>(Lnet/minecraft/class_4081;I)V
      official <init> Lbsb;<init>(Lbsc;I)V
  • Method Details

    • isInstant

      public boolean isInstant()
      Overrides:
      isInstant in class StatusEffect
      Mappings:
      Namespace Name Mixin selector
      named isInstant Lnet/minecraft/entity/effect/StatusEffect;isInstant()Z
      intermediary method_5561 Lnet/minecraft/class_1291;method_5561()Z
      official a Lbsb;a()Z
    • canApplyUpdateEffect

      public boolean canApplyUpdateEffect(int duration, int amplifier)
      Overrides:
      canApplyUpdateEffect in class StatusEffect
      Mappings:
      Namespace Name Mixin selector
      named canApplyUpdateEffect Lnet/minecraft/entity/effect/StatusEffect;canApplyUpdateEffect(II)Z
      intermediary method_5552 Lnet/minecraft/class_1291;method_5552(II)Z
      official a Lbsb;a(II)Z