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 interface
static interface
static interface
static interface
-
Constructor Summary
ConstructorsConstructorDescriptionAnimationVariableSlotCallbackFloat
(String string, float float0, AnimationVariableSlotCallbackFloat.PrimitiveFloatSupplier primitiveFloatSupplier, AnimationVariableSlotCallbackFloat.PrimitiveFloatConsumer primitiveFloatConsumer, IAnimationVariableSlotDescriptor iAnimationVariableSlotDescriptor) AnimationVariableSlotCallbackFloat
(String string, float float0, AnimationVariableSlotCallbackFloat.PrimitiveFloatSupplier primitiveFloatSupplier, IAnimationVariableSlotDescriptor iAnimationVariableSlotDescriptor) AnimationVariableSlotCallbackFloat
(String string, AnimationVariableSlotCallbackFloat.PrimitiveFloatSupplier primitiveFloatSupplier, AnimationVariableSlotCallbackFloat.PrimitiveFloatConsumer primitiveFloatConsumer, IAnimationVariableSlotDescriptor iAnimationVariableSlotDescriptor) AnimationVariableSlotCallbackFloat
(String string, AnimationVariableSlotCallbackFloat.PrimitiveFloatSupplier primitiveFloatSupplier, IAnimationVariableSlotDescriptor iAnimationVariableSlotDescriptor) -
Method Summary
Modifier and TypeMethodDescriptionboolean
canConvertFrom
(String var1) Returns TRUE if this variable slot can accept and/or convert the supplied value object.getType()
This variable's value typegetValue()
boolean
This variable's value, as a Boolean.float
This variable's value, as a Float.This variable's value, in String form.boolean
Returns TRUE if this variable is not writable.void
setValue
(boolean boolean0) Set this variable's valuevoid
setValue
(float float0) Set this variable's valuevoid
Set this variable's valueboolean
trySetValue
(Float float0) Methods inherited from class zombie.core.skinnedmodel.advancedanimation.AnimationVariableSlotCallback
clear
Methods inherited from class zombie.core.skinnedmodel.advancedanimation.AnimationVariableSlot
getDescription, getKey
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface zombie.core.skinnedmodel.advancedanimation.IAnimationVariableSlot
getEnumValue, getHandle, setEnumValue, setReadOnly
-
Constructor Details
-
AnimationVariableSlotCallbackFloat
public AnimationVariableSlotCallbackFloat(String string, AnimationVariableSlotCallbackFloat.PrimitiveFloatSupplier primitiveFloatSupplier, IAnimationVariableSlotDescriptor iAnimationVariableSlotDescriptor) -
AnimationVariableSlotCallbackFloat
public AnimationVariableSlotCallbackFloat(String string, AnimationVariableSlotCallbackFloat.PrimitiveFloatSupplier primitiveFloatSupplier, AnimationVariableSlotCallbackFloat.PrimitiveFloatConsumer primitiveFloatConsumer, IAnimationVariableSlotDescriptor iAnimationVariableSlotDescriptor) -
AnimationVariableSlotCallbackFloat
public AnimationVariableSlotCallbackFloat(String string, float float0, AnimationVariableSlotCallbackFloat.PrimitiveFloatSupplier primitiveFloatSupplier, IAnimationVariableSlotDescriptor iAnimationVariableSlotDescriptor) -
AnimationVariableSlotCallbackFloat
public AnimationVariableSlotCallbackFloat(String string, float float0, AnimationVariableSlotCallbackFloat.PrimitiveFloatSupplier primitiveFloatSupplier, AnimationVariableSlotCallbackFloat.PrimitiveFloatConsumer primitiveFloatConsumer, IAnimationVariableSlotDescriptor iAnimationVariableSlotDescriptor)
-
-
Method Details
-
getValue
- Overrides:
getValue
in classAnimationVariableSlotCallback<Float>
-
getDefaultValue
- Specified by:
getDefaultValue
in classAnimationVariableSlotCallback<Float>
-
trySetValue
- Overrides:
trySetValue
in classAnimationVariableSlotCallback<Float>
-
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.- Specified by:
isReadOnly
in interfaceIAnimationVariableSlot
- Overrides:
isReadOnly
in classAnimationVariableSlotCallback<Float>
-
getValueString
Description copied from interface:IAnimationVariableSlot
This variable's value, in String form. -
getValueFloat
public float getValueFloat()Description copied from interface:IAnimationVariableSlot
This variable's value, as a Float. -
getValueBool
public boolean getValueBool()Description copied from interface:IAnimationVariableSlot
This variable's value, as a Boolean. -
setValue
Description copied from interface:IAnimationVariableSlot
Set this variable's value -
setValue
public void setValue(float float0) Description copied from interface:IAnimationVariableSlot
Set this variable's value -
setValue
public void setValue(boolean boolean0) Description copied from interface:IAnimationVariableSlot
Set this variable's value -
getType
Description copied from interface:IAnimationVariableSlot
This variable's value type -
canConvertFrom
Description copied from interface:IAnimationVariableSlot
Returns 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.
-