Class Storage

Represent a storage

Hierarchy

  • Storage

Constructors

Properties

Methods

Constructors

Properties

datas: NBTData
name: string

Methods

  • Get data of the storage

    Parameters

    • Optional path: NBTPath

      The path to the storage's data

    • Optional scale: number

      The scale to multiply the request data after get it

    Returns string

  • Store data from a command

    Parameters

    • path: NBTPath

      The path to the storage's data

    • type: "success" | "result"

      The type of result you want:
      success: If the command has been correcly executed, it will returns 1, else 0
      result: Will returns the callback of the executed command

    • from: string

      The command

    Returns string

Generated using TypeDoc