Package net.minecraft.world.timeline
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 net.minecraft.world.attribute.EnvironmentAttributeLayer
EnvironmentAttributeLayer.Constant<Value>, EnvironmentAttributeLayer.Positional<Value>, EnvironmentAttributeLayer.TimeBased<Value> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final KeyframeTrackSampler<Argument> private @Nullable Argumentprivate intprivate final LongSupplierprivate final AttributeModifier<Value, Argument> -
Constructor Summary
ConstructorsConstructorDescriptionAttributeTrackSampler(Optional<Integer> pPeriodTicks, AttributeModifier<Value, Argument> pModifier, KeyframeTrack<Argument> pTrack, LerpFunction<Argument> pLerp, LongSupplier pDayTimeGetter) -
Method Summary
-
Field Details
-
modifier
-
argumentSampler
-
dayTimeGetter
-
cachedTickId
private int cachedTickId -
cachedArgument
-
-
Constructor Details
-
AttributeTrackSampler
public AttributeTrackSampler(Optional<Integer> pPeriodTicks, AttributeModifier<Value, Argument> pModifier, KeyframeTrack<Argument> pTrack, LerpFunction<Argument> pLerp, LongSupplier pDayTimeGetter)
-
-
Method Details
-
applyTimeBased
- Specified by:
applyTimeBasedin interfaceEnvironmentAttributeLayer.TimeBased<Value>
-