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

emu.grasscutter.game.player.BasePlayerDataManager Maven / Gradle / Ivy

There is a newer version: 1.7.3
Show newest version
package emu.grasscutter.game.player;

import lombok.NonNull;

public abstract class BasePlayerDataManager {
    protected transient Player player;

    public BasePlayerDataManager() {}

    public BasePlayerDataManager(@NonNull Player player) {
        this.player = player;
    }

    public Player getPlayer() {
        return this.player;
    }

    public void setPlayer(Player player) {
        if (this.player == null) {
            this.player = player;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy