Package sfs3.client.entities.variables
Class MMOItemVariable
java.lang.Object
sfs3.client.entities.variables.BaseVariable
sfs3.client.entities.variables.MMOItemVariable
- All Implemented Interfaces:
IMMOItemVariable,Variable
The MMOItemVariabke is a custom value attached to an MMOItem object that gets automatically synchronized between client and server on every change,
provided that the MMOItem is inside the Area of Interest of the current User in a MMORoom.
Note that MMOItem Variables behave exactly like User Variables and support the same data types, but they can be created, updated and deleted on the server side only.
- See Also:
-
Field Summary
Fields inherited from class sfs3.client.entities.variables.BaseVariable
name, type, val -
Constructor Summary
ConstructorsConstructorDescriptionMMOItemVariable(String name, Object val) Creates a new variableMMOItemVariable(String name, Object value, VariableType type) Types are usually auto-detected. -
Method Summary
Methods inherited from class sfs3.client.entities.variables.BaseVariable
getBoolValue, getByteValue, getDoubleValue, getFloatValue, getIntValue, getLongValue, getName, getSFSArrayValue, getSFSObjectValue, getSFSVector2Value, getSFSVector3Value, getShortValue, getStringValue, getType, getValue, isNull, populateArrayWithValue, setValue, toSFSArray, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface sfs3.client.entities.variables.Variable
getBoolValue, getByteValue, getDoubleValue, getFloatValue, getIntValue, getLongValue, getName, getSFSArrayValue, getSFSObjectValue, getSFSVector2Value, getSFSVector3Value, getShortValue, getStringValue, getType, getValue, isNull, toSFSArray
-
Constructor Details
-
MMOItemVariable
Creates a new variable- Parameters:
name- name of the variableval- value of the variable
-
MMOItemVariable
Types are usually auto-detected. Please see:MMOItemVariable(String, Object)- Parameters:
name- name of the variablevalue- value of the variabletype- type of the variable
-
-
Method Details
-
fromSFSArray
-