Search Results for

    Show / Hide Table of Contents

    Class OpenLevelManager

    The LevelManager keeps track of all available Levels (A.K.A Worlds) in the server.

    Inheritance
    System.Object
    OpenLevelManager
    Namespace: OpenAPI.World
    Assembly: OpenAPI.dll
    Syntax
    public class OpenLevelManager : LevelManager

    Constructors

    | Improve this Doc View Source

    OpenLevelManager(OpenApi)

    Declaration
    public OpenLevelManager(OpenApi api)
    Parameters
    Type Name Description
    OpenApi api

    Properties

    | Improve this Doc View Source

    GetLevels

    Returns the levels currently registered with the LevelManager

    Declaration
    public OpenLevel[] GetLevels { get; }
    Property Value
    Type Description
    OpenLevel[]
    | Improve this Doc View Source

    HasDefaultLevel

    Declaration
    public bool HasDefaultLevel { get; }
    Property Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    LevelCount

    Declaration
    public int LevelCount { get; }
    Property Value
    Type Description
    System.Int32

    Methods

    | Improve this Doc View Source

    Close()

    Closes the Level's

    Declaration
    public void Close()
    | Improve this Doc View Source

    GetDefaultLevel()

    Declaration
    public OpenLevel GetDefaultLevel()
    Returns
    Type Description
    OpenLevel
    | Improve this Doc View Source

    GetDimension(Level, Dimension)

    Declaration
    public override Level GetDimension(Level level, Dimension dimension)
    Parameters
    Type Name Description
    Level level
    Dimension dimension
    Returns
    Type Description
    Level
    | Improve this Doc View Source

    GetLevel(MiNET.Player, String)

    Declaration
    public override Level GetLevel(MiNET.Player player, string levelId)
    Parameters
    Type Name Description
    MiNET.Player player
    System.String levelId
    Returns
    Type Description
    Level
    | Improve this Doc View Source

    GetLevel(String, String, ChunkColumn[])

    Declaration
    public OpenLevel GetLevel(string basepath, string levelId, ChunkColumn[] chunks)
    Parameters
    Type Name Description
    System.String basepath
    System.String levelId
    ChunkColumn[] chunks
    Returns
    Type Description
    OpenLevel
    | Improve this Doc View Source

    LoadLevel(OpenLevel)

    Initializes the OpenLevel instance, this could include loading the world from a local folder or generating a new world.

    Declaration
    public void LoadLevel(OpenLevel openLevel)
    Parameters
    Type Name Description
    OpenLevel openLevel

    The OpenLevel instance to register and initialize

    | Improve this Doc View Source

    LoadLevel(String)

    Declaration
    public OpenLevel LoadLevel(string levelDirectory)
    Parameters
    Type Name Description
    System.String levelDirectory
    Returns
    Type Description
    OpenLevel
    | Improve this Doc View Source

    LoadLevel(String, String)

    Declaration
    public OpenLevel LoadLevel(string levelDirectory, string levelId)
    Parameters
    Type Name Description
    System.String levelDirectory
    System.String levelId
    Returns
    Type Description
    OpenLevel
    | Improve this Doc View Source

    SetDefaultLevel(OpenLevel)

    Sets the Default OpenLevel players join when connecting to the server.

    Declaration
    public void SetDefaultLevel(OpenLevel level)
    Parameters
    Type Name Description
    OpenLevel level
    | Improve this Doc View Source

    UnloadLevel(OpenLevel)

    Declaration
    public void UnloadLevel(OpenLevel openLevel)
    Parameters
    Type Name Description
    OpenLevel openLevel
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX