Interface Variable

All Known Subinterfaces:
BuddyVariable, IMMOItemVariable, RoomVariable, UserVariable
All Known Implementing Classes:
BaseVariable, MMOItemVariable, SFSBuddyVariable, SFSRoomVariable, SFSUserVariable

public interface Variable
Interface for all variable types in the API.
See Also:
  • Method Details

    • getName

      String getName()
      Return the name of the variable
      Returns:
      the variable's name
    • getType

      VariableType getType()
      Return the data type of the variable
      Returns:
      the data type of the variable
    • getValue

      Object getValue()
      Get the value of the variable as Object
      Returns:
      the value of the variable as Object
    • getBoolValue

      Boolean getBoolValue()
      Get the value of the variable as Boolean
      Returns:
      the value of the variable as Boolean
    • getByteValue

      Byte getByteValue()
      Get the value of the variable as Byte
      Returns:
      the value of the variable as Byte
    • getShortValue

      Short getShortValue()
      Get the value of the variable as Short
      Returns:
      the value of the variable as Short
    • getIntValue

      Integer getIntValue()
      Get the value of the variable as Integer
      Returns:
      the value of the variable as Integer
    • getLongValue

      Long getLongValue()
      Get the value of the variable as Long
      Returns:
      the value of the variable as Long
    • getFloatValue

      Float getFloatValue()
      Get the value of the variable as Float
      Returns:
      the value of the variable as Float
    • getDoubleValue

      Double getDoubleValue()
      Get the value of the variable as Double
      Returns:
      the value of the variable as Double
    • getStringValue

      String getStringValue()
      Get the value of the variable as String
      Returns:
      the value of the variable as String
    • getSFSVector2Value

      SFSVector2 getSFSVector2Value()
      Get the value of the variable as SFSVector2
      Returns:
      the value of the variable as SFSVector2
    • getSFSVector3Value

      SFSVector3 getSFSVector3Value()
      Get the value of the variable as SFSVector3
      Returns:
      the value of the variable as SFSVector3
    • getSFSObjectValue

      ISFSObject getSFSObjectValue()
      Get the value of the variable as SFSObject
      Returns:
      the value of the variable as SFSObject
    • getSFSArrayValue

      ISFSArray getSFSArrayValue()
      Get the value of the variable as SFSArray
      Returns:
      the value of the variable as SFSArray
    • isNull

      boolean isNull()
      Test if a variable is null
      Returns:
      true if the variable is null
    • toSFSArray

      ISFSArray toSFSArray()
      Private