Class ModelBlockAnimation.MBClip
- java.lang.Object
-
- net.minecraftforge.client.model.animation.ModelBlockAnimation.MBClip
-
- All Implemented Interfaces:
IClip
- Enclosing class:
- ModelBlockAnimation
protected static class ModelBlockAnimation.MBClip extends java.lang.Object implements IClip
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
ModelBlockAnimation.MBClip.MBJointClip
-
Field Summary
Fields Modifier and Type Field Description private java.util.TreeMap<java.lang.Float,Event>
events
private com.google.common.collect.ImmutableMap<java.lang.String,java.lang.String>
eventsRaw
private com.google.common.collect.ImmutableMap<java.lang.String,ModelBlockAnimation.MBClip.MBJointClip>
jointClips
private com.google.common.collect.ImmutableMap<java.lang.String,com.google.common.collect.ImmutableList<ModelBlockAnimation.MBVariableClip>>
jointClipsFlat
private boolean
loop
-
Constructor Summary
Constructors Constructor Description MBClip(boolean loop, com.google.common.collect.ImmutableMap<java.lang.String,com.google.common.collect.ImmutableList<ModelBlockAnimation.MBVariableClip>> clips, com.google.common.collect.ImmutableMap<java.lang.String,java.lang.String> events)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IJointClip
apply(IJoint joint)
private void
initialize()
java.lang.Iterable<Event>
pastEvents(float lastPollTime, float time)
-
-
-
Field Detail
-
loop
private final boolean loop
-
jointClipsFlat
@SerializedName("joint_clips") private final com.google.common.collect.ImmutableMap<java.lang.String,com.google.common.collect.ImmutableList<ModelBlockAnimation.MBVariableClip>> jointClipsFlat
-
jointClips
private transient com.google.common.collect.ImmutableMap<java.lang.String,ModelBlockAnimation.MBClip.MBJointClip> jointClips
-
eventsRaw
@SerializedName("events") private final com.google.common.collect.ImmutableMap<java.lang.String,java.lang.String> eventsRaw
-
events
private transient java.util.TreeMap<java.lang.Float,Event> events
-
-
Constructor Detail
-
MBClip
public MBClip(boolean loop, com.google.common.collect.ImmutableMap<java.lang.String,com.google.common.collect.ImmutableList<ModelBlockAnimation.MBVariableClip>> clips, com.google.common.collect.ImmutableMap<java.lang.String,java.lang.String> events)
-
-
Method Detail
-
initialize
private void initialize()
-
apply
public IJointClip apply(IJoint joint)
-
pastEvents
public java.lang.Iterable<Event> pastEvents(float lastPollTime, float time)
- Specified by:
pastEvents
in interfaceIClip
-
-