Class AnimationVariableSlotCallbackEnum<EnumType extends Enum<EnumType>>
java.lang.Object
zombie.core.skinnedmodel.advancedanimation.AnimationVariableSlot
zombie.core.skinnedmodel.advancedanimation.AbstractAnimationVariableSlotEnum<EnumType>
zombie.core.skinnedmodel.advancedanimation.AnimationVariableSlotCallbackEnum<EnumType>
- All Implemented Interfaces:
IAnimationVariableSlot
public class AnimationVariableSlotCallbackEnum<EnumType extends Enum<EnumType>>
extends AbstractAnimationVariableSlotEnum<EnumType>
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
AnimationVariableSlotCallbackEnum
(Class<EnumType> _class, String string, EnumType _enum, Supplier<EnumType> supplier) protected
AnimationVariableSlotCallbackEnum
(Class<EnumType> _class, String string, EnumType _enum, Supplier<EnumType> supplier, Consumer<EnumType> consumer) -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
Clear this variable, its value is set to a null-value.getValue()
boolean
Returns TRUE if this variable is not writable.void
boolean
trySetValue
(EnumType _enum) Methods inherited from class zombie.core.skinnedmodel.advancedanimation.AbstractAnimationVariableSlotEnum
canConvertFrom, getDefaultValue, getEnumTypeClass, getEnumValue, getType, getValueBool, getValueFloat, getValueString, setEnumValue, setValue, setValue, setValue
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
getHandle, setReadOnly
-
Constructor Details
-
AnimationVariableSlotCallbackEnum
-
AnimationVariableSlotCallbackEnum
-
-
Method Details
-
getValue
-
setValue
-
trySetValue
-
isReadOnly
public boolean isReadOnly()Description copied from interface:IAnimationVariableSlot
Returns 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. -
clear
public void clear()Description copied from interface:IAnimationVariableSlot
Clear this variable, its value is set to a null-value. Blank for Strings, 0 for Floats, False for Booleans, etc.- Specified by:
clear
in interfaceIAnimationVariableSlot
- Overrides:
clear
in classAbstractAnimationVariableSlotEnum<EnumType extends Enum<EnumType>>
-