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
PlayTickslongTime on the server, in game ticks (20 per second).
DeathslongTimes died.
MobKillslongMobs killed.
PlayerKillslongPlayers killed.
DistanceCmlongDistance covered on foot, swimming, flying and riding, in centimetres.
Properties
BlocksMined
Total blocks broken, whatever they were.
public long BlocksMined { get; }
Property Value
Crafted
Items crafted, by item, most first.
public IReadOnlyList<StatEntry> Crafted { get; init; }
Property Value
DamageDealt
public long DamageDealt { get; init; }
Property Value
DamageTaken
public long DamageTaken { get; init; }
Property Value
Deaths
Times died.
public long Deaths { get; init; }
Property Value
DistanceCm
Distance covered on foot, swimming, flying and riding, in centimetres.
public long DistanceCm { get; init; }
Property Value
ElytraCm
Distance under an elytra, in centimetres.
public long ElytraCm { get; init; }
Property Value
FlownCm
Distance in creative flight, in centimetres.
public long FlownCm { get; init; }
Property Value
Jumps
public long Jumps { get; init; }
Property Value
Killed
Mobs killed, by kind, most first.
public IReadOnlyList<StatEntry> Killed { get; init; }
Property Value
KilledBy
What killed this player, by kind, most first.
public IReadOnlyList<StatEntry> KilledBy { get; init; }
Property Value
Mined
Blocks broken, by block, most first. Minecraft counts these exactly.
public IReadOnlyList<StatEntry> Mined { get; init; }
Property Value
MobKills
Mobs killed.
public long MobKills { get; init; }
Property Value
OresMined
Ore blocks broken; see LooksLikeOre(string) for how they are spotted.
public long OresMined { get; }
Property Value
PlayTicks
Time on the server, in game ticks (20 per second).
public long PlayTicks { get; init; }
Property Value
PlayTime
public TimeSpan PlayTime { get; }
Property Value
PlayerKills
Players killed.
public long PlayerKills { get; init; }
Property Value
Used
Items used, by item, most first — which for a block means placing it.
public IReadOnlyList<StatEntry> Used { get; init; }
Property Value
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; }