Remove @RequiredArgsConstructor from PlayerInfoSerializer as the javadoc fails to build with it
This commit is contained in:
parent
bf9521472b
commit
747628f40c
@ -7,18 +7,21 @@ import com.google.gson.JsonObject;
|
||||
import com.google.gson.JsonParseException;
|
||||
import com.google.gson.JsonSerializationContext;
|
||||
import com.google.gson.JsonSerializer;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import net.md_5.bungee.api.ServerPing;
|
||||
|
||||
import java.lang.reflect.Type;
|
||||
import java.util.UUID;
|
||||
|
||||
@RequiredArgsConstructor
|
||||
public class PlayerInfoSerializer implements JsonSerializer<ServerPing.PlayerInfo>, JsonDeserializer<ServerPing.PlayerInfo>
|
||||
{
|
||||
|
||||
private final int protocol;
|
||||
|
||||
public PlayerInfoSerializer(int protocol)
|
||||
{
|
||||
this.protocol = protocol;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ServerPing.PlayerInfo deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) throws JsonParseException
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user