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>
(package private) int
private float
private float
private float
private float
private boolean
private final 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
update
(MobEffectInstance p_216931_)
-
Field Details
-
CODEC
-
paddingDuration
private final int paddingDuration -
factorStart
private float factorStart -
factorTarget
private float factorTarget -
factorCurrent
private float factorCurrent -
effectChangedTimestamp
int effectChangedTimestamp -
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
-
update
-
getFactor
-