Interface PlayerFlying

Interface used to manipulate player's flying ability and state.

interface PlayerFlying {
    get(): boolean;
    getEnabled(): boolean;
    set(enabled: boolean): void;
    setEnabled(enabled: boolean): void;
}

Methods

  • Returns boolean

    true if player is flying, false otherwise.

  • Returns boolean

    true if player is allowed to fly, false otherwise.

  • Changes player's current flying state, call Player.PlayerFlying.setEnabled to be able to set this property to true.

    Parameters

    • enabled: boolean

      whether the player should fly or not

    Returns void

  • Enables or disables player's ability to fly.

    Parameters

    • enabled: boolean

      whether the player can fly or not

    Returns void

Copyright © 2024 Nernar. Copyright © 2020 #mineprogramming. Built with ❤ and TypeDoc.