Class MMOItemVariable

java.lang.Object
sfs3.client.entities.variables.BaseVariable
sfs3.client.entities.variables.MMOItemVariable
All Implemented Interfaces:
IMMOItemVariable, Variable

public class MMOItemVariable extends BaseVariable implements IMMOItemVariable
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:
  • Constructor Details

    • MMOItemVariable

      public MMOItemVariable(String name, Object val)
      Creates a new variable
      Parameters:
      name - name of the variable
      val - value of the variable
    • MMOItemVariable

      public MMOItemVariable(String name, Object value, VariableType type)
      Types are usually auto-detected. Please see: MMOItemVariable(String, Object)
      Parameters:
      name - name of the variable
      value - value of the variable
      type - type of the variable
  • Method Details