net.minecraft.world.attribute.timeline

public class TrackAttributeModification<Value, Argument>

implements EnvironmentAttributeFunction$TimeBased<Value>

net.minecraft.world.timeline.AttributeTrackSampler
net.minecraft.class_12328
net.minecraft.world.attribute.timeline.TrackAttributeModification

Field summary

Modifier and TypeField
private final RegistryEntry<WorldClockKey>
clock
field_1_1034
field_1_1034
private final EnvironmentAttributeModifier<Value, Argument>
modifier
field_64392
modifiers
private final TrackEvaluator<Argument>
argumentSampler
field_64393
evaluator
private final ClockQueryable
clockManager
field_64394
timeSupplier
private int
cachedTickId
field_64395
lastComputedTime
private Argument
cachedArgument
field_64396
lastComputedValue

Constructor summary

ModifierConstructor
public (RegistryEntry<WorldClockKey> clock, Optional<Integer> period, EnvironmentAttributeModifier<Value, Argument> modifier, Track<Argument> track, Interpolator<Argument> interpolator, ClockQueryable clockManager)

Method summary

Modifier and TypeMethod
public Value
applyTimeBased(Value baseValue, int cacheTickId)
method_1_270(Value arg0, int arg1)
applyTimeBased(Value arg0, int arg1)