SoulFire TypeScript SDK 2.10.3
    Preparing search index...

    Type Alias PlayerSnapshot

    PlayerSnapshot: Message<"soulfire.v1.PlayerSnapshot"> & {
        abilities?: PlayerAbilitiesSnapshot;
        air: number;
        attributes: AttributeSnapshot[];
        connectionEpoch: string;
        dead: boolean;
        effects: EffectSnapshot[];
        equipment: { [key: string]: ItemStackSnapshot };
        exhaustion: number;
        experience?: ExperienceSnapshot;
        fireTicks: number;
        food: number;
        freezingTicks: number;
        gameMode: GameMode;
        health: number;
        lastDamage?: number;
        mainHand?: ItemStackSnapshot;
        maxAir: number;
        maxHealth: number;
        offHand?: ItemStackSnapshot;
        onGround: boolean;
        pose: string;
        position?: WorldPosition;
        revision: bigint;
        rotation?: Rotation;
        saturation: number;
        selectedHotbarSlot: number;
        sleeping: boolean;
        spawnPoint?: BlockPosition;
        usingItem: boolean;
        vehicle?: EntityReference;
        velocity?: Vec3;
    }

    Type Declaration

    • Optionalabilities?: PlayerAbilitiesSnapshot

      from field: soulfire.v1.PlayerAbilitiesSnapshot abilities = 17;

    • air: number

      from field: int32 air = 11;

    • attributes: AttributeSnapshot[]

      from field: repeated soulfire.v1.AttributeSnapshot attributes = 23;

    • connectionEpoch: string

      from field: string connection_epoch = 30;

    • dead: boolean

      from field: bool dead = 28;

    • effects: EffectSnapshot[]

      from field: repeated soulfire.v1.EffectSnapshot effects = 22;

    • equipment: { [key: string]: ItemStackSnapshot }

      from field: map<string, soulfire.v1.ItemStackSnapshot> equipment = 21;

    • exhaustion: number

      from field: float exhaustion = 10;

    • Optionalexperience?: ExperienceSnapshot

      from field: soulfire.v1.ExperienceSnapshot experience = 15;

    • fireTicks: number

      from field: int32 fire_ticks = 13;

    • food: number

      from field: int32 food = 8;

    • freezingTicks: number

      from field: int32 freezing_ticks = 14;

    • gameMode: GameMode

      from field: soulfire.v1.GameMode game_mode = 16;

    • health: number

      from field: float health = 6;

    • OptionallastDamage?: number

      from field: optional float last_damage = 29;

    • OptionalmainHand?: ItemStackSnapshot

      from field: optional soulfire.v1.ItemStackSnapshot main_hand = 19;

    • maxAir: number

      from field: int32 max_air = 12;

    • maxHealth: number

      from field: float max_health = 7;

    • OptionaloffHand?: ItemStackSnapshot

      from field: optional soulfire.v1.ItemStackSnapshot off_hand = 20;

    • onGround: boolean

      from field: bool on_ground = 4;

    • pose: string

      from field: string pose = 5;

    • Optionalposition?: WorldPosition

      from field: soulfire.v1.WorldPosition position = 1;

    • revision: bigint

      from field: uint64 revision = 31;

    • Optionalrotation?: Rotation

      from field: soulfire.v1.Rotation rotation = 3;

    • saturation: number

      from field: float saturation = 9;

    • selectedHotbarSlot: number

      from field: int32 selected_hotbar_slot = 18;

    • sleeping: boolean

      from field: bool sleeping = 24;

    • OptionalspawnPoint?: BlockPosition

      from field: optional soulfire.v1.BlockPosition spawn_point = 27;

    • usingItem: boolean

      from field: bool using_item = 25;

    • Optionalvehicle?: EntityReference

      from field: optional soulfire.v1.EntityReference vehicle = 26;

    • Optionalvelocity?: Vec3

      from field: soulfire.v1.Vec3 velocity = 2;

    from message soulfire.v1.PlayerSnapshot