Class AnimationVariableSlotCallbackFloat
java.lang.Object
zombie.core.skinnedmodel.advancedanimation.AnimationVariableSlot
zombie.core.skinnedmodel.advancedanimation.AnimationVariableSlotCallback<Float>
zombie.core.skinnedmodel.advancedanimation.AnimationVariableSlotCallbackFloat
- All Implemented Interfaces:
IAnimationVariableSlot
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic interface -
Constructor Summary
ConstructorsConstructorDescriptionAnimationVariableSlotCallbackFloat(String key, float defaultVal, AnimationVariableSlotCallbackFloat.PrimitiveFloatSupplier callbackGet, AnimationVariableSlotCallbackFloat.PrimitiveFloatConsumer callbackSet, IAnimationVariableSlotDescriptor descriptor) AnimationVariableSlotCallbackFloat(String key, float defaultVal, AnimationVariableSlotCallbackFloat.PrimitiveFloatSupplier callbackGet, IAnimationVariableSlotDescriptor descriptor) AnimationVariableSlotCallbackFloat(String key, AnimationVariableSlotCallbackFloat.PrimitiveFloatSupplier callbackGet, AnimationVariableSlotCallbackFloat.PrimitiveFloatConsumer callbackSet, IAnimationVariableSlotDescriptor descriptor) AnimationVariableSlotCallbackFloat(String key, AnimationVariableSlotCallbackFloat.PrimitiveFloatSupplier callbackGet, IAnimationVariableSlotDescriptor descriptor) -
Method Summary
Modifier and TypeMethodDescriptionbooleancanConvertFrom(String val) getType()getValue()booleanfloatintbooleanvoidsetValue(boolean val) voidsetValue(float val) voidsetValue(int val) voidbooleantrySetValue(float val) booleantrySetValue(Float val) Methods inherited from class AnimationVariableSlotCallback
clearMethods inherited from class AnimationVariableSlot
getDescription, getKeyMethods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface IAnimationVariableSlot
getEnumValue, getHandle, setEnumValue, setReadOnly
-
Constructor Details
-
AnimationVariableSlotCallbackFloat
public AnimationVariableSlotCallbackFloat(String key, AnimationVariableSlotCallbackFloat.PrimitiveFloatSupplier callbackGet, IAnimationVariableSlotDescriptor descriptor) -
AnimationVariableSlotCallbackFloat
public AnimationVariableSlotCallbackFloat(String key, AnimationVariableSlotCallbackFloat.PrimitiveFloatSupplier callbackGet, AnimationVariableSlotCallbackFloat.PrimitiveFloatConsumer callbackSet, IAnimationVariableSlotDescriptor descriptor) -
AnimationVariableSlotCallbackFloat
public AnimationVariableSlotCallbackFloat(String key, float defaultVal, AnimationVariableSlotCallbackFloat.PrimitiveFloatSupplier callbackGet, IAnimationVariableSlotDescriptor descriptor) -
AnimationVariableSlotCallbackFloat
public AnimationVariableSlotCallbackFloat(String key, float defaultVal, AnimationVariableSlotCallbackFloat.PrimitiveFloatSupplier callbackGet, AnimationVariableSlotCallbackFloat.PrimitiveFloatConsumer callbackSet, IAnimationVariableSlotDescriptor descriptor)
-
-
Method Details
-
getValue
- Overrides:
getValuein classAnimationVariableSlotCallback<Float>
-
getDefaultValue
- Specified by:
getDefaultValuein classAnimationVariableSlotCallback<Float>
-
trySetValue
- Overrides:
trySetValuein classAnimationVariableSlotCallback<Float>
-
trySetValue
public boolean trySetValue(float val) -
isReadOnly
public boolean isReadOnly()- Specified by:
isReadOnlyin interfaceIAnimationVariableSlot- Overrides:
isReadOnlyin classAnimationVariableSlotCallback<Float>
-
getValueString
-
getValueFloat
public float getValueFloat() -
getValueInt
public int getValueInt() -
getValueBool
public boolean getValueBool() -
setValue
-
setValue
public void setValue(float val) -
setValue
public void setValue(int val) -
setValue
public void setValue(boolean val) -
getType
-
canConvertFrom
-