Package sfs3.client.entities.variables
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 Summary
Modifier and TypeMethodDescriptionGet the value of the variable as BooleanGet the value of the variable as ByteGet the value of the variable as DoubleGet the value of the variable as FloatGet the value of the variable as IntegerGet the value of the variable as LonggetName()Return the name of the variableGet the value of the variable as SFSArrayGet the value of the variable as SFSObjectGet the value of the variable as SFSVector2Get the value of the variable as SFSVector3Get the value of the variable as ShortGet the value of the variable as StringgetType()Return the data type of the variablegetValue()Get the value of the variable as ObjectbooleanisNull()Test if a variable is nullPrivate
-
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
-