mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-12-03 20:18:23 +00:00
24 lines
480 B
Java
24 lines
480 B
Java
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;
|
|
}
|
|
}
|
|
}
|