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