Class AnimationVariableSlotCallbackInt
java.lang.Object
zombie.core.skinnedmodel.advancedanimation.AnimationVariableSlot
zombie.core.skinnedmodel.advancedanimation.AnimationVariableSlotCallback<Integer>
zombie.core.skinnedmodel.advancedanimation.AnimationVariableSlotCallbackInt
- All Implemented Interfaces:
IAnimationVariableSlot
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic interface -
Constructor Summary
ConstructorsConstructorDescriptionAnimationVariableSlotCallbackInt(String key, int defaultVal, AnimationVariableSlotCallbackInt.PrimitiveIntSupplier callbackGet, AnimationVariableSlotCallbackInt.PrimitiveIntConsumer callbackSet, IAnimationVariableSlotDescriptor descriptor) AnimationVariableSlotCallbackInt(String key, int defaultVal, AnimationVariableSlotCallbackInt.PrimitiveIntSupplier callbackGet, IAnimationVariableSlotDescriptor descriptor) AnimationVariableSlotCallbackInt(String key, AnimationVariableSlotCallbackInt.PrimitiveIntSupplier callbackGet, AnimationVariableSlotCallbackInt.PrimitiveIntConsumer callbackSet, IAnimationVariableSlotDescriptor descriptor) AnimationVariableSlotCallbackInt(String key, AnimationVariableSlotCallbackInt.PrimitiveIntSupplier callbackGet, IAnimationVariableSlotDescriptor descriptor) -
Method Summary
Modifier and TypeMethodDescriptionbooleancanConvertFrom(String val) Returns TRUE if this variable slot can accept and/or convert the supplied value object.getType()This variable's value typegetValue()booleanThis variable's value, as a Boolean.floatThis variable's value, as a Float.intThis variable's value, in String form.booleanReturns TRUE if this variable is not writable.voidsetValue(boolean val) Set this variable's valuevoidsetValue(float val) Set this variable's valuevoidsetValue(int val) voidSet this variable's valuebooleantrySetValue(int val) booleantrySetValue(Integer 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
-
AnimationVariableSlotCallbackInt
public AnimationVariableSlotCallbackInt(String key, AnimationVariableSlotCallbackInt.PrimitiveIntSupplier callbackGet, IAnimationVariableSlotDescriptor descriptor) -
AnimationVariableSlotCallbackInt
public AnimationVariableSlotCallbackInt(String key, AnimationVariableSlotCallbackInt.PrimitiveIntSupplier callbackGet, AnimationVariableSlotCallbackInt.PrimitiveIntConsumer callbackSet, IAnimationVariableSlotDescriptor descriptor) -
AnimationVariableSlotCallbackInt
public AnimationVariableSlotCallbackInt(String key, int defaultVal, AnimationVariableSlotCallbackInt.PrimitiveIntSupplier callbackGet, IAnimationVariableSlotDescriptor descriptor) -
AnimationVariableSlotCallbackInt
public AnimationVariableSlotCallbackInt(String key, int defaultVal, AnimationVariableSlotCallbackInt.PrimitiveIntSupplier callbackGet, AnimationVariableSlotCallbackInt.PrimitiveIntConsumer callbackSet, IAnimationVariableSlotDescriptor descriptor)
-
-
Method Details
-
getValue
- Overrides:
getValuein classAnimationVariableSlotCallback<Integer>
-
getDefaultValue
- Specified by:
getDefaultValuein classAnimationVariableSlotCallback<Integer>
-
getValueString
Description copied from interface:IAnimationVariableSlotThis variable's value, in String form. -
getValueInt
public int getValueInt() -
trySetValue
- Overrides:
trySetValuein classAnimationVariableSlotCallback<Integer>
-
trySetValue
public boolean trySetValue(int val) -
isReadOnly
public boolean isReadOnly()Description copied from interface:IAnimationVariableSlotReturns TRUE if this variable is not writable. Typically, the value of this variable is specified by an outside condition, such as whether the character is currently falling, etc.- Specified by:
isReadOnlyin interfaceIAnimationVariableSlot- Overrides:
isReadOnlyin classAnimationVariableSlotCallback<Integer>
-
getValueFloat
public float getValueFloat()Description copied from interface:IAnimationVariableSlotThis variable's value, as a Float. -
getValueBool
public boolean getValueBool()Description copied from interface:IAnimationVariableSlotThis variable's value, as a Boolean. -
setValue
Description copied from interface:IAnimationVariableSlotSet this variable's value -
setValue
public void setValue(float val) Description copied from interface:IAnimationVariableSlotSet this variable's value -
setValue
public void setValue(int val) -
setValue
public void setValue(boolean val) Description copied from interface:IAnimationVariableSlotSet this variable's value -
getType
Description copied from interface:IAnimationVariableSlotThis variable's value type -
canConvertFrom
Description copied from interface:IAnimationVariableSlotReturns TRUE if this variable slot can accept and/or convert the supplied value object. Returns FALSE if the conversion would result in a loss of data. Eg. If a String is given to a Float variable, and the string is not of a numeric format, then the string value would be lost.
-