Class TimeValues.ParameterValue
- java.lang.Object
-
- net.minecraftforge.common.animation.TimeValues.ParameterValue
-
- All Implemented Interfaces:
IStringSerializable
,ITimeValue
- Enclosing class:
- TimeValues
public static final class TimeValues.ParameterValue extends java.lang.Object implements ITimeValue, IStringSerializable
-
-
Field Summary
Fields Modifier and Type Field Description private ITimeValue
parameter
private java.lang.String
parameterName
private java.util.function.Function<java.lang.String,ITimeValue>
valueResolver
-
Constructor Summary
Constructors Constructor Description ParameterValue(java.lang.String parameterName, java.util.function.Function<java.lang.String,ITimeValue> valueResolver)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description float
apply(float input)
boolean
equals(java.lang.Object obj)
java.lang.String
getSerializedName()
int
hashCode()
private void
resolve()
-
-
-
Field Detail
-
parameterName
private final java.lang.String parameterName
-
valueResolver
private final java.util.function.Function<java.lang.String,ITimeValue> valueResolver
-
parameter
private ITimeValue parameter
-
-
Constructor Detail
-
ParameterValue
public ParameterValue(java.lang.String parameterName, java.util.function.Function<java.lang.String,ITimeValue> valueResolver)
-
-
Method Detail
-
getSerializedName
public java.lang.String getSerializedName()
- Specified by:
getSerializedName
in interfaceIStringSerializable
-
resolve
private void resolve()
-
apply
public float apply(float input)
- Specified by:
apply
in interfaceITimeValue
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
-