Class Clips
java.lang.Object
net.minecraftforge.common.model.animation.Clips
Various implementations of IClip, and utility methods.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Reference to another clip.static class
static class
Clip that does nothing.static class
Wrapper for model clips; useful for debugging and serialization;static class
Spherical linear blend between 2 clips.static class
Clip with custom parameterization of the time.static class
Clip + Event, triggers when parameter becomes non-negative. -
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.commons.lang3.tuple.Pair<ModelState,Iterable<Event>>
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, String clipName)
Retrieves the clip from the model.
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER
-
-
Constructor Details
-
Clips
public Clips()
-
-
Method Details
-
getModelClipNode
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<ModelState,Iterable<Event>> apply(IClip clip, float lastPollTime, float time)IModelState wrapper for a Clip, sampled at specified time.
-