24 lines
463 B
Java
24 lines
463 B
Java
|
package net.minecraft.server.players;
|
||
|
|
||
|
import com.google.gson.JsonObject;
|
||
|
import javax.annotation.Nullable;
|
||
|
|
||
|
public abstract class StoredUserEntry<T> {
|
||
|
@Nullable
|
||
|
private final T user;
|
||
|
|
||
|
public StoredUserEntry(@Nullable T p_11371_) {
|
||
|
this.user = p_11371_;
|
||
|
}
|
||
|
|
||
|
@Nullable
|
||
|
T getUser() {
|
||
|
return this.user;
|
||
|
}
|
||
|
|
||
|
boolean hasExpired() {
|
||
|
return false;
|
||
|
}
|
||
|
|
||
|
protected abstract void serialize(JsonObject p_11372_);
|
||
|
}
|