SerenityJS
    Preparing search index...

    Hierarchy

    Index

    Constructors

    Properties

    blockPalette: BlockPalette = ...

    The block palette of the world.

    commandPalette: CommandPalette = ...

    The command palette of the world.

    dayTime: number = 0

    The current time of day for the world.

    dimensions: Map<string, Dimension> = ...

    The dimensions of the world.

    effectPalette: EffectPallete = ...

    The effect palette of the world.

    entityPalette: EntityPalette = ...

    The entity palette of the world.

    identifier: string

    The identifier of the world.

    itemPalette: ItemPalette = ...

    The item palette of the world.

    logger: Logger

    The logger of the world.

    properties: WorldProperties = DefaultWorldProperties

    The properties of the world.

    provider: WorldProvider

    The provider of the world.

    scoreboard: Scoreboard = ...

    The scoreboard for the world.

    serenity: Serenity

    The serenity instance that the world belongs to.

    Accessors

    • get gamerules(): Partial<Record<GameRule, string | number | boolean>>

      The current gamerules values of the world.

      Returns Partial<Record<GameRule, string | number | boolean>>

    • get maxListeners(): number

      Returns number

    • set maxListeners(value: number): void

      Parameters

      • value: number

      Returns void

    Methods

    • Sends a packet to all players in the world except for the specified player.

      Parameters

      • player: Player

        The player to exclude from the broadcast.

      • ...packets: DataPacket[]

        The packets to send.

      Returns void

    • Sends a packet to all players in the world immediately. This will bypass the RakNet queue and send the packet immediately.

      Parameters

      • ...packets: DataPacket[]

        The packets to send.

      Returns void

    • Ticks the world with a given delta tick.

      Parameters

      • deltaTick: number

        The delta tick to tick the world with.

      Returns void

    • Type Parameters

      Parameters

      • Optionalevent: K

      Returns this

    • Type Parameters

      Parameters

      • Optionalevent: K

      Returns this

    • Type Parameters

      Parameters

      • Optionalevent: K

      Returns this

    • Parameters

      • path: string

      Returns this

    • Broadcasts a message to all players in the world.

      Parameters

      • message: string

        The message to broadcast.

      Returns void

    • Sets the default gamemode for the world.

      Parameters

      • gamemode: Gamemode

        The gamemode to set.

      Returns void

    • Set the current difficulty of the world.

      Parameters

      • difficulty: Difficulty

        The difficulty to set.

      Returns void

    • Sets the current time of day for the world.

      Parameters

      • time: number

        The time of day to set.

      Returns void