Package net.minecraft.world.effect
Class MobEffectInstance.FactorData
java.lang.Object
net.minecraft.world.effect.MobEffectInstance.FactorData
- Enclosing class:
- MobEffectInstance
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<MobEffectInstance.FactorData>
private float
private float
private float
private float
private boolean
private final int
private int
-
Constructor Summary
ConstructorDescriptionFactorData
(int p_216917_) FactorData
(int p_216919_, float p_216920_, float p_216921_, float p_216922_, int p_216923_, float p_216924_, boolean p_216925_) -
Method Summary
Modifier and TypeMethodDescriptionfloat
getFactor
(LivingEntity p_238414_, float p_238415_) void
tick
(MobEffectInstance p_268212_)
-
Field Details
-
CODEC
-
paddingDuration
private final int paddingDuration -
factorStart
private float factorStart -
factorTarget
private float factorTarget -
factorCurrent
private float factorCurrent -
ticksActive
private int ticksActive -
factorPreviousFrame
private float factorPreviousFrame -
hadEffectLastTick
private boolean hadEffectLastTick
-
-
Constructor Details
-
FactorData
public FactorData(int p_216919_, float p_216920_, float p_216921_, float p_216922_, int p_216923_, float p_216924_, boolean p_216925_) -
FactorData
public FactorData(int p_216917_)
-
-
Method Details
-
tick
-
getFactor
-