Class AttributeTrackSampler<Value,Argument>
java.lang.Object
net.minecraft.world.timeline.AttributeTrackSampler<Value,Argument>
- All Implemented Interfaces:
EnvironmentAttributeLayer<Value>, EnvironmentAttributeLayer.TimeBased<Value>
public class AttributeTrackSampler<Value,Argument>
extends Object
implements EnvironmentAttributeLayer.TimeBased<Value>
-
Nested Class Summary
Nested classes/interfaces inherited from interface EnvironmentAttributeLayer
EnvironmentAttributeLayer.Constant<Value>, EnvironmentAttributeLayer.Positional<Value>, EnvironmentAttributeLayer.TimeBased<Value> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final KeyframeTrackSampler<Argument> private @Nullable Argumentprivate intprivate final Holder<WorldClock> private final ClockManagerprivate final AttributeModifier<Value, Argument> -
Constructor Summary
ConstructorsConstructorDescriptionAttributeTrackSampler(Holder<WorldClock> clock, Optional<Integer> periodTicks, AttributeModifier<Value, Argument> modifier, KeyframeTrack<Argument> argumentTrack, LerpFunction<Argument> argumentLerp, ClockManager clockManager) -
Method Summary
-
Field Details
-
clock
-
modifier
-
argumentSampler
-
clockManager
-
cachedTickId
private int cachedTickId -
cachedArgument
-
-
Constructor Details
-
AttributeTrackSampler
public AttributeTrackSampler(Holder<WorldClock> clock, Optional<Integer> periodTicks, AttributeModifier<Value, Argument> modifier, KeyframeTrack<Argument> argumentTrack, LerpFunction<Argument> argumentLerp, ClockManager clockManager)
-
-
Method Details
-
applyTimeBased
- Specified by:
applyTimeBasedin interfaceEnvironmentAttributeLayer.TimeBased<Value>
-