All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.isaichkindanila.g.net.client.util.PlayerStats Maven / Gradle / Ivy

There is a newer version: 1.0.1
Show newest version
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();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy