- All Superinterfaces:
ProviderHub,ScriptObject<T>,ValidationHub
public interface ServerObject<T> extends ScriptObject<T>, ValidationHub, ProviderHub
Server Objects have the ability to generate other
script objects.
-
Method Summary
Modifier and Type Method Description intgetChannelCount()intgetContiState(int fieldIdStart)This should return the current state of the contimove.Optional<FieldObject>getField(int fieldId)Optional<FieldSetObject>getFieldSet(String fieldSetName)default ZonedDateTimegetTime()default TimeZonegetTimeZone()Stringname()Methods inherited from interface moe.maple.api.script.model.object.data.provider.ProviderHub
getFaceProvider, getHairProvider, getItemProviderMethods inherited from interface moe.maple.api.script.model.object.data.safety.ValidationHub
getFaceValidator, getFieldValidator, getHairValidator, getMobValidator, getSkillValidator
-
Method Details
-
getContiState
int getContiState(int fieldIdStart)This should return the current state of the contimove. ContiState.Wait is used for boarding, etc. ContiState: 0 - Dormant 1 - Wait 2 - Start 3 - Move 4 - Mob Gen 5 - Mob Destroy 6 - End ... and so on- Parameters:
fieldIdStart- - The start of the contimove- Returns:
- 0 if contimove doesn't exist, otherwise it's current state
-
getFieldSet
- Parameters:
fieldSetName- - The name of the FieldSet- Returns:
- the fieldset if it exists
-
getField
- Parameters:
fieldId- - The .wz id of the field- Returns:
- the fieldobject if it exists
-
getTime
- Returns:
- A
ZonedDateTimeof the current moment.
-
getTimeZone
- Returns:
- The server's configured
TimeZone.
-
getChannelCount
int getChannelCount()- Returns:
- A count of the server's total channels.
-
name
String name()- Returns:
- The server's human readable name.
-