Class StatusEffectInstance.Fading

java.lang.Object
net.minecraft.entity.effect.StatusEffectInstance.Fading
Enclosing class:
StatusEffectInstance

private static class StatusEffectInstance.Fading extends Object
Computes the factor (multiplier) for effect fade-in and fade-out.

This is used by StatusEffects.DARKNESS in vanilla.

See Also:
Mappings:
Namespace Name
named net/minecraft/entity/effect/StatusEffectInstance$Fading
intermediary net/minecraft/class_1293$class_9063
official bsd$a
  • Field Details

    • factor

      private float factor
      Mappings:
      Namespace Name Mixin selector
      named factor Lnet/minecraft/entity/effect/StatusEffectInstance$Fading;factor:F
      intermediary field_47740 Lnet/minecraft/class_1293$class_9063;field_47740:F
      official a Lbsd$a;a:F
    • prevFactor

      private float prevFactor
      Mappings:
      Namespace Name Mixin selector
      named prevFactor Lnet/minecraft/entity/effect/StatusEffectInstance$Fading;prevFactor:F
      intermediary field_47741 Lnet/minecraft/class_1293$class_9063;field_47741:F
      official b Lbsd$a;b:F
  • Constructor Details

    • Fading

      Fading()
  • Method Details

    • skipFading

      public void skipFading(StatusEffectInstance effect)
      Skips fade-in or fade-out currently in progress, instantly setting it to the final state (factor 1.0f or 0.0f, depending on the effect's duration).
      Mappings:
      Namespace Name Mixin selector
      named skipFading Lnet/minecraft/entity/effect/StatusEffectInstance$Fading;skipFading(Lnet/minecraft/entity/effect/StatusEffectInstance;)V
      intermediary method_55659 Lnet/minecraft/class_1293$class_9063;method_55659(Lnet/minecraft/class_1293;)V
      official a Lbsd$a;a(Lbsd;)V
    • copyFrom

      public void copyFrom(StatusEffectInstance.Fading fading)
      Mappings:
      Namespace Name Mixin selector
      named copyFrom Lnet/minecraft/entity/effect/StatusEffectInstance$Fading;copyFrom(Lnet/minecraft/entity/effect/StatusEffectInstance$Fading;)V
      intermediary method_55658 Lnet/minecraft/class_1293$class_9063;method_55658(Lnet/minecraft/class_1293$class_9063;)V
      official a Lbsd$a;a(Lbsd$a;)V
    • update

      public void update(StatusEffectInstance effect)
      Mappings:
      Namespace Name Mixin selector
      named update Lnet/minecraft/entity/effect/StatusEffectInstance$Fading;update(Lnet/minecraft/entity/effect/StatusEffectInstance;)V
      intermediary method_55661 Lnet/minecraft/class_1293$class_9063;method_55661(Lnet/minecraft/class_1293;)V
      official b Lbsd$a;b(Lbsd;)V
    • getTarget

      private static float getTarget(StatusEffectInstance effect)
      Mappings:
      Namespace Name Mixin selector
      named getTarget Lnet/minecraft/entity/effect/StatusEffectInstance$Fading;getTarget(Lnet/minecraft/entity/effect/StatusEffectInstance;)F
      intermediary method_55662 Lnet/minecraft/class_1293$class_9063;method_55662(Lnet/minecraft/class_1293;)F
      official c Lbsd$a;c(Lbsd;)F
    • getFadeTicks

      private static int getFadeTicks(StatusEffectInstance effect)
      Mappings:
      Namespace Name Mixin selector
      named getFadeTicks Lnet/minecraft/entity/effect/StatusEffectInstance$Fading;getFadeTicks(Lnet/minecraft/entity/effect/StatusEffectInstance;)I
      intermediary method_55663 Lnet/minecraft/class_1293$class_9063;method_55663(Lnet/minecraft/class_1293;)I
      official d Lbsd$a;d(Lbsd;)I
    • calculate

      public float calculate(LivingEntity entity, float tickDelta)
      Mappings:
      Namespace Name Mixin selector
      named calculate Lnet/minecraft/entity/effect/StatusEffectInstance$Fading;calculate(Lnet/minecraft/entity/LivingEntity;F)F
      intermediary method_55660 Lnet/minecraft/class_1293$class_9063;method_55660(Lnet/minecraft/class_1309;F)F
      official a Lbsd$a;a(Lbtq;F)F