Package net.minecraft.entity.effect
Class StatusEffectInstance.Fading
java.lang.Object
net.minecraft.entity.effect.StatusEffectInstance.Fading
- Enclosing class:
StatusEffectInstance
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 buo$a
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfloat
calculate
(LivingEntity entity, float tickDelta) void
copyFrom
(StatusEffectInstance.Fading fading) private static int
getFadeTicks
(StatusEffectInstance effect) private static float
getTarget
(StatusEffectInstance effect) void
skipFading
(StatusEffectInstance effect) Skips fade-in or fade-out currently in progress, instantly setting it to the final state (factor1.0f
or0.0f
, depending on the effect's duration).void
update
(StatusEffectInstance effect)
-
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
Lbuo$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
Lbuo$a;b:F
-
-
Constructor Details
-
Fading
Fading()
-
-
Method Details
-
skipFading
Skips fade-in or fade-out currently in progress, instantly setting it to the final state (factor1.0f
or0.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
Lbuo$a;a(Lbuo;)V
-
copyFrom
- 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
Lbuo$a;a(Lbuo$a;)V
-
update
- 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
Lbuo$a;b(Lbuo;)V
-
getTarget
- 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
Lbuo$a;c(Lbuo;)F
-
getFadeTicks
- 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
Lbuo$a;d(Lbuo;)I
-
calculate
- 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
Lbuo$a;a(Lbwf;F)F
-