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 bry$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 Lbry$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 Lbry$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 Lbry$a;a(Lbry;)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 Lbry$a;a(Lbry$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 Lbry$a;b(Lbry;)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 Lbry$a;c(Lbry;)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 Lbry$a;d(Lbry;)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 Lbry$a;a(Lbtl;F)F