Class AnimationVariableSlotCallback<VariableType>
java.lang.Object
zombie.core.skinnedmodel.advancedanimation.AnimationVariableSlot
zombie.core.skinnedmodel.advancedanimation.AnimationVariableSlotCallback<VariableType>
- All Implemented Interfaces:
IAnimationVariableSlot
- Direct Known Subclasses:
AnimationVariableSlotCallbackBool
,AnimationVariableSlotCallbackFloat
,AnimationVariableSlotCallbackInt
,AnimationVariableSlotCallbackString
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
AnimationVariableSlotCallback
(String string, Supplier<VariableType> supplier) protected
AnimationVariableSlotCallback
(String string, Supplier<VariableType> supplier, Consumer<VariableType> consumer) -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
Clear this variable, its value is set to a null-value.abstract VariableType
getValue()
boolean
Description copied from interface: IAnimationVariableSlotboolean
trySetValue
(VariableType object) Methods inherited from class zombie.core.skinnedmodel.advancedanimation.AnimationVariableSlot
getKey
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface zombie.core.skinnedmodel.advancedanimation.IAnimationVariableSlot
canConvertFrom, getEnumValue, getHandle, getType, getValueBool, getValueFloat, getValueString, setEnumValue, setReadOnly, setValue, setValue, setValue
-
Constructor Details
-
AnimationVariableSlotCallback
-
AnimationVariableSlotCallback
protected AnimationVariableSlotCallback(String string, Supplier<VariableType> supplier, Consumer<VariableType> consumer)
-
-
Method Details
-
getValue
-
getDefaultValue
-
trySetValue
-
isReadOnly
public boolean isReadOnly()Description copied from interface: IAnimationVariableSlot -
clear
public void clear()Clear this variable, its value is set to a null-value. Blank for Strings, 0 for Floats, False for Booleans, etc.
-