Class AbstractAnimationVariableSlotEnum<EnumType extends Enum<EnumType>>

java.lang.Object
zombie.core.skinnedmodel.advancedanimation.AnimationVariableSlot
zombie.core.skinnedmodel.advancedanimation.AbstractAnimationVariableSlotEnum<EnumType>
All Implemented Interfaces:
IAnimationVariableSlot
Direct Known Subclasses:
AnimationVariableSlotCallbackEnum, AnimationVariableSlotEnum

public abstract class AbstractAnimationVariableSlotEnum<EnumType extends Enum<EnumType>> extends AnimationVariableSlot
  • Constructor Details

    • AbstractAnimationVariableSlotEnum

      public AbstractAnimationVariableSlotEnum(Class<EnumType> _class, String string, EnumType _enum)
  • Method Details

    • getEnumTypeClass

      public Class<EnumType> getEnumTypeClass()
    • getValue

      public abstract EnumType getValue()
    • setValue

      public abstract void setValue(EnumType var1)
    • getEnumValue

      public <E extends Enum<E>> E getEnumValue(E _enum)
    • setEnumValue

      public <E extends Enum<E>> void setEnumValue(E _enum)
    • getValueString

      public String 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.
    • getDefaultValue

      public EnumType getDefaultValue()
    • setValue

      public void setValue(String string)
      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

      public AnimationVariableType getType()
      Description copied from interface: IAnimationVariableSlot
      This variable's value type
    • canConvertFrom

      public boolean canConvertFrom(String string)
      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.
    • 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.