com.github.isaichkindanila.g.net.client.util.PlayerStats Maven / Gradle / Ivy
package com.github.isaichkindanila.g.net.client.util;
import lombok.Value;
import org.jetbrains.annotations.NotNull;
import java.io.DataInput;
import java.io.IOException;
@Value
public class PlayerStats {
private final int id;
private final int hp;
private final int score;
private final @NotNull String name;
public PlayerStats(DataInput input) throws IOException {
id = input.readInt();
name = input.readUTF();
hp = input.readInt();
score = input.readInt();
}
}