Table of Contents

Class PlayerStats

Namespace
McServerLauncher.Services
Assembly
McServerLauncher.dll

A player's statistics as the server itself counts them.

public sealed record PlayerStats : IEquatable<PlayerStats>
Inheritance
PlayerStats
Implements
Inherited Members

Constructors

PlayerStats(long, long, long, long, long)

A player's statistics as the server itself counts them.

public PlayerStats(long PlayTicks, long Deaths, long MobKills, long PlayerKills, long DistanceCm)

Parameters

PlayTicks long

Time on the server, in game ticks (20 per second).

Deaths long

Times died.

MobKills long

Mobs killed.

PlayerKills long

Players killed.

DistanceCm long

Distance covered on foot, swimming, flying and riding, in centimetres.

Properties

BlocksMined

Total blocks broken, whatever they were.

public long BlocksMined { get; }

Property Value

long

Crafted

Items crafted, by item, most first.

public IReadOnlyList<StatEntry> Crafted { get; init; }

Property Value

IReadOnlyList<StatEntry>

DamageDealt

public long DamageDealt { get; init; }

Property Value

long

DamageTaken

public long DamageTaken { get; init; }

Property Value

long

Deaths

Times died.

public long Deaths { get; init; }

Property Value

long

DistanceCm

Distance covered on foot, swimming, flying and riding, in centimetres.

public long DistanceCm { get; init; }

Property Value

long

ElytraCm

Distance under an elytra, in centimetres.

public long ElytraCm { get; init; }

Property Value

long

FlownCm

Distance in creative flight, in centimetres.

public long FlownCm { get; init; }

Property Value

long

Jumps

public long Jumps { get; init; }

Property Value

long

Killed

Mobs killed, by kind, most first.

public IReadOnlyList<StatEntry> Killed { get; init; }

Property Value

IReadOnlyList<StatEntry>

KilledBy

What killed this player, by kind, most first.

public IReadOnlyList<StatEntry> KilledBy { get; init; }

Property Value

IReadOnlyList<StatEntry>

Mined

Blocks broken, by block, most first. Minecraft counts these exactly.

public IReadOnlyList<StatEntry> Mined { get; init; }

Property Value

IReadOnlyList<StatEntry>

MobKills

Mobs killed.

public long MobKills { get; init; }

Property Value

long

OresMined

Ore blocks broken; see LooksLikeOre(string) for how they are spotted.

public long OresMined { get; }

Property Value

long

PlayTicks

Time on the server, in game ticks (20 per second).

public long PlayTicks { get; init; }

Property Value

long

PlayTime

public TimeSpan PlayTime { get; }

Property Value

TimeSpan

PlayerKills

Players killed.

public long PlayerKills { get; init; }

Property Value

long

Used

Items used, by item, most first — which for a block means placing it.

public IReadOnlyList<StatEntry> Used { get; init; }

Property Value

IReadOnlyList<StatEntry>

Remarks

Minecraft has no "blocks placed" counter. What it keeps is minecraft:used, "times you used this item", and for a block that is a placement — but for a shovel it is a swing and for bread it is a meal. The list is shown as it is, with a line saying so, rather than filtered against a hand-kept list of block ids that would go stale every release and quietly hide whatever was added last.

WalkedCm

Distance walked, sprinted and crouched, in centimetres.

public long WalkedCm { get; init; }

Property Value

long