Package com.smartfoxserver.v2.mmo
Interface IMMOItem
-
- All Known Implementing Classes:
BaseMMOItem
,MMOItem
public interface IMMOItem
Defines the basic methods of an MMOItem class- Since:
- 2.8.0
- See Also:
MMOItem
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getId()
The MMOItem IDIMMOItemVariable
getVariable(java.lang.String varName)
Obtain a variable from the MMOItem via its namejava.util.List<IMMOItemVariable>
getVariables()
Get a list of all variables attached to the MMOItemvoid
removeVariable(java.lang.String varName)
Used internally.void
setVariable(IMMOItemVariable var)
Used internally.void
setVariables(java.util.List<IMMOItemVariable> varList)
Used internally.ISFSArray
toSFSArray()
Used internally
-
-
-
Method Detail
-
getId
int getId()
The MMOItem ID- Returns:
- the unique Item ID
-
getVariable
IMMOItemVariable getVariable(java.lang.String varName)
Obtain a variable from the MMOItem via its name- Parameters:
varName
- the variable name- Returns:
- the variable object
-
getVariables
java.util.List<IMMOItemVariable> getVariables()
Get a list of all variables attached to the MMOItem- Returns:
- all variables attached to the MMOItem
-
setVariable
void setVariable(IMMOItemVariable var)
Used internally. To set variables see below:
-
setVariables
void setVariables(java.util.List<IMMOItemVariable> varList)
Used internally. To set variables see below:
-
removeVariable
void removeVariable(java.lang.String varName)
Used internally. Removing an existing variables requires to set the variable to null To remove variables see below:
-
toSFSArray
ISFSArray toSFSArray()
Used internally
-
-