Class Clips
- java.lang.Object
-
- net.minecraftforge.common.model.animation.Clips
-
public final class Clips extends java.lang.Object
Various implementations of IClip, and utility methods.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Clips.ClipReference
Reference to another clip.static class
Clips.CommonClipTypeAdapterFactory
static class
Clips.IdentityClip
Clip that does nothing.static class
Clips.ModelClip
Wrapper for model clips; useful for debugging and serialization;static class
Clips.SlerpClip
Spherical linear blend between 2 clips.static class
Clips.TimeClip
Clip with custom parameterization of the time.static class
Clips.TriggerClip
Clip + Event, triggers when parameter becomes non-negative.
-
Field Summary
Fields Modifier and Type Field Description private static org.apache.logging.log4j.Logger
LOGGER
-
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 IJointClip
blendClips(IJoint joint, IJointClip fromClip, IJointClip toClip, ITimeValue input, ITimeValue progress)
static IClip
getModelClipNode(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.
-
-