Grasscutter/src/main/java/emu/grasscutter/game/player/BasePlayerDataManager.java

24 lines
480 B
Java
Raw Normal View History

2022-07-19 03:42:22 +00:00
package emu.grasscutter.game.player;
import lombok.NonNull;
public abstract class BasePlayerDataManager {
protected transient Player player;
2022-07-21 07:21:22 +00:00
2022-07-19 03:42:22 +00:00
public BasePlayerDataManager() {}
2022-07-21 07:21:22 +00:00
2022-07-19 03:42:22 +00:00
public BasePlayerDataManager(@NonNull Player player) {
this.player = player;
}
2022-07-21 07:21:22 +00:00
2022-07-19 03:42:22 +00:00
public Player getPlayer() {
return this.player;
}
2022-07-21 07:21:22 +00:00
2022-07-19 03:42:22 +00:00
public void setPlayer(Player player) {
if (this.player == null) {
this.player = player;
}
}
}