MovementAbilities record struct
Ways a player can move beyond vanilla's rules, which mods grant with IPlayer.SetMovementAbilities. The server and the Obsidian client's prediction both honour them, so a player using one isn't corrected.
public readonly record struct MovementAbilities : IEquatable<MovementAbilities>
In Obsidian.API.
Remarks
Attribute modifiers (minecraft:jump_strength, minecraft:gravity, minecraft:movement_speed, minecraft:safe_fall_distance and the rest) tune the movement every player already has; these add moves that no attribute gives.
Properties
CanFly
public bool CanFly { get; init; }Whether the player can fly like in creative mode, in any game mode: vanilla's mayfly ability, which every client honours.
CanGlide
public bool CanGlide { get; init; }Whether the player can glide like with an elytra, without wearing one: pressing jump in the air starts gliding, and landing stops it. Only the Obsidian client starts gliding without a glider item.
ExtraJumps
public int ExtraJumps { get; init; }How many more times the player can jump in the air, pressing jump again, before landing. Each one jumps like a ground jump, by the player's minecraft:jump_strength, and forgives the fall so far. Only the Obsidian client predicts them; other clients don't jump in the air.
Methods
Combine(MovementAbilities)
public MovementAbilities Combine(MovementAbilities other);Both grants together: their extra jumps added up, and each ability if either has it.