mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-20 12:20:11 +00:00
instance -> INSTANCE
This commit is contained in:
1 parent
286c8c05b7
commit
4b53f0716b
18 files changed
+95
-99
No files matched your search
@@ -23,7 +23,7 @@ public final class TimeValues
|
||||
{
|
||||
public static enum IdentityValue implements ITimeValue, IStringSerializable
|
||||
{
|
||||
instance;
|
||||
INSTANCE;
|
||||
|
||||
public float apply(float input)
|
||||
{
|
||||
@@ -352,7 +352,7 @@ public final class TimeValues
|
||||
String string = in.nextString();
|
||||
if(string.equals("#identity"))
|
||||
{
|
||||
return IdentityValue.instance;
|
||||
return IdentityValue.INSTANCE;
|
||||
}
|
||||
if(!string.startsWith("#"))
|
||||
{
|
||||
|
||||
@@ -206,7 +206,7 @@ public final class AnimationStateMachine implements IAnimationStateMachine
|
||||
|
||||
private static final AnimationStateMachine missing = new AnimationStateMachine(
|
||||
ImmutableMap.<String, ITimeValue>of(),
|
||||
ImmutableMap.of("missingno", (IClip)Clips.IdentityClip.instance),
|
||||
ImmutableMap.of("missingno", (IClip)Clips.IdentityClip.INSTANCE),
|
||||
ImmutableList.of("missingno"),
|
||||
ImmutableMap.<String, String>of(),
|
||||
"missingno");
|
||||
|
||||
@@ -44,11 +44,11 @@ public final class Clips
|
||||
*/
|
||||
public static enum IdentityClip implements IClip, IStringSerializable
|
||||
{
|
||||
instance;
|
||||
INSTANCE;
|
||||
|
||||
public IJointClip apply(IJoint joint)
|
||||
{
|
||||
return JointClips.IdentityJointClip.instance;
|
||||
return JointClips.IdentityJointClip.INSTANCE;
|
||||
}
|
||||
|
||||
public Iterable<Event> pastEvents(float lastPollTime, float time)
|
||||
@@ -79,7 +79,7 @@ public final class Clips
|
||||
FMLLog.getLogger().error("Unable to find clip " + clipName + " in the model " + modelLocation);
|
||||
}
|
||||
// FIXME: missing clip?
|
||||
return new ModelClip(IdentityClip.instance, modelLocation, clipName);
|
||||
return new ModelClip(IdentityClip.INSTANCE, modelLocation, clipName);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -502,7 +502,7 @@ public final class Clips
|
||||
// IdentityClip
|
||||
if(string.equals("#identity"))
|
||||
{
|
||||
return IdentityClip.instance;
|
||||
return IdentityClip.INSTANCE;
|
||||
}
|
||||
// Clip reference
|
||||
if(string.startsWith("#"))
|
||||
|
||||
@@ -9,7 +9,7 @@ public final class JointClips
|
||||
{
|
||||
public static enum IdentityJointClip implements IJointClip
|
||||
{
|
||||
instance;
|
||||
INSTANCE;
|
||||
|
||||
public TRSRTransformation apply(float time)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user