Class Clips
- java.lang.Object
-
- net.minecraftforge.common.model.animation.Clips
-
public final class Clips extends java.lang.ObjectVarious implementations of IClip, and utility methods.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classClips.ClipReferenceReference to another clip.static classClips.CommonClipTypeAdapterFactorystatic classClips.IdentityClipClip that does nothing.static classClips.ModelClipWrapper for model clips; useful for debugging and serialization;static classClips.SlerpClipSpherical linear blend between 2 clips.static classClips.TimeClipClip with custom parameterization of the time.static classClips.TriggerClipClip + Event, triggers when parameter becomes non-negative.
-
Field Summary
Fields Modifier and Type Field Description private static org.apache.logging.log4j.LoggerLOGGER
-
Constructor Summary
Constructors Constructor Description Clips()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.apache.commons.lang3.tuple.Pair<IModelTransform,java.lang.Iterable<Event>>apply(IClip clip, float lastPollTime, float time)IModelState wrapper for a Clip, sampled at specified time.private static IJointClipblendClips(IJoint joint, IJointClip fromClip, IJointClip toClip, ITimeValue input, ITimeValue progress)static IClipgetModelClipNode(ResourceLocation modelLocation, java.lang.String clipName)Retrieves the clip from the model.
-
-
-
Method Detail
-
getModelClipNode
public static IClip getModelClipNode(ResourceLocation modelLocation, java.lang.String clipName)
Retrieves the clip from the model.
-
blendClips
private static IJointClip blendClips(IJoint joint, IJointClip fromClip, IJointClip toClip, ITimeValue input, ITimeValue progress)
-
apply
public static org.apache.commons.lang3.tuple.Pair<IModelTransform,java.lang.Iterable<Event>> apply(IClip clip, float lastPollTime, float time)
IModelState wrapper for a Clip, sampled at specified time.
-
-