Interface ServerObject<T>

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 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

      Optional<FieldSetObject> getFieldSet​(String fieldSetName)
      Parameters:
      fieldSetName - - The name of the FieldSet
      Returns:
      the fieldset if it exists
    • getField

      Optional<FieldObject> getField​(int fieldId)
      Parameters:
      fieldId - - The .wz id of the field
      Returns:
      the fieldobject if it exists
    • getTime

      default ZonedDateTime getTime()
      Returns:
      A ZonedDateTime of the current moment.
    • getTimeZone

      default TimeZone 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.