Class AnimationVariableSource
java.lang.Object
zombie.core.skinnedmodel.advancedanimation.AnimationVariableSource
- All Implemented Interfaces:
IAnimationVariableCallbackMap
,IAnimationVariableMap
,IAnimationVariableSource
- Direct Known Subclasses:
AnimatedModel
public class AnimationVariableSource
extends Object
implements IAnimationVariableMap, IAnimationVariableCallbackMap
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
clearVariable
(String key) void
boolean
containsVariable
(String key) Returns all Game variables.getVariable
(AnimationVariableHandle handle) Returns the specified variable slot.boolean
isEmpty()
boolean
isVariable
(String name, String val) Compares (ignoring case) the value of the specified variable.void
setVariable
(String string, boolean boolean0) void
setVariable
(String key, boolean defaultVal, AnimationVariableSlotCallbackBool.CallbackGetStrongTyped callbackGet) Strong-typed utility function.void
setVariable
(String key, boolean defaultVal, AnimationVariableSlotCallbackBool.CallbackGetStrongTyped callbackGet, AnimationVariableSlotCallbackBool.CallbackSetStrongTyped callbackSet) Strong-typed utility function.setVariable
(String string, float float0) void
setVariable
(String key, float defaultVal, AnimationVariableSlotCallbackFloat.CallbackGetStrongTyped callbackGet) Strong-typed utility function.void
setVariable
(String key, float defaultVal, AnimationVariableSlotCallbackFloat.CallbackGetStrongTyped callbackGet, AnimationVariableSlotCallbackFloat.CallbackSetStrongTyped callbackSet) Strong-typed utility function.void
setVariable
(String key, int defaultVal, AnimationVariableSlotCallbackInt.CallbackGetStrongTyped callbackGet) Strong-typed utility function.void
setVariable
(String key, int defaultVal, AnimationVariableSlotCallbackInt.CallbackGetStrongTyped callbackGet, AnimationVariableSlotCallbackInt.CallbackSetStrongTyped callbackSet) Strong-typed utility function.<EnumType extends Enum<EnumType>>
voidsetVariable
(String string, Class<EnumType> _class, Supplier<EnumType> supplier) <EnumType extends Enum<EnumType>>
voidsetVariable
(String string, Class<EnumType> _class, Supplier<EnumType> supplier, Consumer<EnumType> consumer) setVariable
(String string0, String string1) void
setVariable
(String key, String defaultVal, AnimationVariableSlotCallbackString.CallbackGetStrongTyped callbackGet) Strong-typed utility function.void
setVariable
(String key, String defaultVal, AnimationVariableSlotCallbackString.CallbackGetStrongTyped callbackGet, AnimationVariableSlotCallbackString.CallbackSetStrongTyped callbackSet) Strong-typed utility function.void
setVariable
(String key, AnimationVariableSlotCallbackBool.CallbackGetStrongTyped callbackGet) Strong-typed utility function.void
setVariable
(String key, AnimationVariableSlotCallbackBool.CallbackGetStrongTyped callbackGet, AnimationVariableSlotCallbackBool.CallbackSetStrongTyped callbackSet) Strong-typed utility function.void
setVariable
(String key, AnimationVariableSlotCallbackFloat.CallbackGetStrongTyped callbackGet) Strong-typed utility function.void
setVariable
(String key, AnimationVariableSlotCallbackFloat.CallbackGetStrongTyped callbackGet, AnimationVariableSlotCallbackFloat.CallbackSetStrongTyped callbackSet) Strong-typed utility function.void
setVariable
(String key, AnimationVariableSlotCallbackInt.CallbackGetStrongTyped callbackGet) Strong-typed utility function.void
setVariable
(String key, AnimationVariableSlotCallbackInt.CallbackGetStrongTyped callbackGet, AnimationVariableSlotCallbackInt.CallbackSetStrongTyped callbackSet) Strong-typed utility function.void
setVariable
(String key, AnimationVariableSlotCallbackString.CallbackGetStrongTyped callbackGet) Strong-typed utility function.void
setVariable
(String key, AnimationVariableSlotCallbackString.CallbackGetStrongTyped callbackGet, AnimationVariableSlotCallbackString.CallbackSetStrongTyped callbackSet) Strong-typed utility function.void
Description copied from interface: IAnimationVariableMap<EnumType extends Enum<EnumType>>
IAnimationVariableSlotsetVariableEnum
(String string, EnumType _enum) 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.IAnimationVariableSource
getSubVariableSource, getVariable, getVariableBoolean, getVariableBoolean, getVariableEnum, getVariableFloat, getVariableString
-
Constructor Details
-
AnimationVariableSource
public AnimationVariableSource()
-
-
Method Details
-
getVariable
Returns the specified variable slot. Or NULL if not found.- Specified by:
getVariable
in interfaceIAnimationVariableSource
-
isEmpty
public boolean isEmpty() -
setVariable
Description copied from interface: IAnimationVariableMap- Specified by:
setVariable
in interfaceIAnimationVariableMap
-
setVariable
public void setVariable(String key, AnimationVariableSlotCallbackBool.CallbackGetStrongTyped callbackGet) Strong-typed utility function.- Specified by:
setVariable
in interfaceIAnimationVariableCallbackMap
-
setVariable
public void setVariable(String key, AnimationVariableSlotCallbackBool.CallbackGetStrongTyped callbackGet, AnimationVariableSlotCallbackBool.CallbackSetStrongTyped callbackSet) Strong-typed utility function.- Specified by:
setVariable
in interfaceIAnimationVariableCallbackMap
-
setVariable
public void setVariable(String key, AnimationVariableSlotCallbackString.CallbackGetStrongTyped callbackGet) Strong-typed utility function.- Specified by:
setVariable
in interfaceIAnimationVariableCallbackMap
-
setVariable
public void setVariable(String key, AnimationVariableSlotCallbackString.CallbackGetStrongTyped callbackGet, AnimationVariableSlotCallbackString.CallbackSetStrongTyped callbackSet) Strong-typed utility function.- Specified by:
setVariable
in interfaceIAnimationVariableCallbackMap
-
setVariable
public void setVariable(String key, AnimationVariableSlotCallbackFloat.CallbackGetStrongTyped callbackGet) Strong-typed utility function.- Specified by:
setVariable
in interfaceIAnimationVariableCallbackMap
-
setVariable
public void setVariable(String key, AnimationVariableSlotCallbackFloat.CallbackGetStrongTyped callbackGet, AnimationVariableSlotCallbackFloat.CallbackSetStrongTyped callbackSet) Strong-typed utility function.- Specified by:
setVariable
in interfaceIAnimationVariableCallbackMap
-
setVariable
public void setVariable(String key, AnimationVariableSlotCallbackInt.CallbackGetStrongTyped callbackGet) Strong-typed utility function.- Specified by:
setVariable
in interfaceIAnimationVariableCallbackMap
-
setVariable
public void setVariable(String key, AnimationVariableSlotCallbackInt.CallbackGetStrongTyped callbackGet, AnimationVariableSlotCallbackInt.CallbackSetStrongTyped callbackSet) Strong-typed utility function.- Specified by:
setVariable
in interfaceIAnimationVariableCallbackMap
-
setVariable
public void setVariable(String key, boolean defaultVal, AnimationVariableSlotCallbackBool.CallbackGetStrongTyped callbackGet) Strong-typed utility function.- Specified by:
setVariable
in interfaceIAnimationVariableCallbackMap
-
setVariable
public void setVariable(String key, boolean defaultVal, AnimationVariableSlotCallbackBool.CallbackGetStrongTyped callbackGet, AnimationVariableSlotCallbackBool.CallbackSetStrongTyped callbackSet) Strong-typed utility function.- Specified by:
setVariable
in interfaceIAnimationVariableCallbackMap
-
setVariable
public void setVariable(String key, String defaultVal, AnimationVariableSlotCallbackString.CallbackGetStrongTyped callbackGet) Strong-typed utility function.- Specified by:
setVariable
in interfaceIAnimationVariableCallbackMap
-
setVariable
public void setVariable(String key, String defaultVal, AnimationVariableSlotCallbackString.CallbackGetStrongTyped callbackGet, AnimationVariableSlotCallbackString.CallbackSetStrongTyped callbackSet) Strong-typed utility function.- Specified by:
setVariable
in interfaceIAnimationVariableCallbackMap
-
setVariable
public void setVariable(String key, float defaultVal, AnimationVariableSlotCallbackFloat.CallbackGetStrongTyped callbackGet) Strong-typed utility function.- Specified by:
setVariable
in interfaceIAnimationVariableCallbackMap
-
setVariable
public void setVariable(String key, float defaultVal, AnimationVariableSlotCallbackFloat.CallbackGetStrongTyped callbackGet, AnimationVariableSlotCallbackFloat.CallbackSetStrongTyped callbackSet) Strong-typed utility function.- Specified by:
setVariable
in interfaceIAnimationVariableCallbackMap
-
setVariable
public void setVariable(String key, int defaultVal, AnimationVariableSlotCallbackInt.CallbackGetStrongTyped callbackGet) Strong-typed utility function.- Specified by:
setVariable
in interfaceIAnimationVariableCallbackMap
-
setVariable
public void setVariable(String key, int defaultVal, AnimationVariableSlotCallbackInt.CallbackGetStrongTyped callbackGet, AnimationVariableSlotCallbackInt.CallbackSetStrongTyped callbackSet) Strong-typed utility function.- Specified by:
setVariable
in interfaceIAnimationVariableCallbackMap
-
setVariable
public <EnumType extends Enum<EnumType>> void setVariable(String string, Class<EnumType> _class, Supplier<EnumType> supplier) - Specified by:
setVariable
in interfaceIAnimationVariableCallbackMap
-
setVariable
public <EnumType extends Enum<EnumType>> void setVariable(String string, Class<EnumType> _class, Supplier<EnumType> supplier, Consumer<EnumType> consumer) - Specified by:
setVariable
in interfaceIAnimationVariableCallbackMap
-
setVariable
- Specified by:
setVariable
in interfaceIAnimationVariableMap
-
setVariable
- Specified by:
setVariable
in interfaceIAnimationVariableMap
-
setVariable
- Specified by:
setVariable
in interfaceIAnimationVariableMap
-
setVariableEnum
public <EnumType extends Enum<EnumType>> IAnimationVariableSlot setVariableEnum(String string, EnumType _enum) - Specified by:
setVariableEnum
in interfaceIAnimationVariableMap
-
clearVariable
- Specified by:
clearVariable
in interfaceIAnimationVariableMap
-
clearVariables
public void clearVariables()- Specified by:
clearVariables
in interfaceIAnimationVariableMap
-
removeAllVariables
public void removeAllVariables() -
getGameVariables
Returns all Game variables.- Specified by:
getGameVariables
in interfaceIAnimationVariableSource
-
isVariable
Compares (ignoring case) the value of the specified variable. Returns TRUE if they match.- Specified by:
isVariable
in interfaceIAnimationVariableSource
-
containsVariable
- Specified by:
containsVariable
in interfaceIAnimationVariableSource
-