net.minecraft.network.rpc

public class JsonRpc

net.minecraft.server.jsonrpc.JsonRPCUtils
net.minecraft.class_11804
net.minecraft.network.rpc.JsonRpc

Field summary

Modifier and TypeField
public static final String
JSON_RPC_VERSION
field_62308
JSON_RPC_VERSION
public static final String
OPEN_RPC_VERSION
field_62309
PROTOCOL_VERSION

Constructor summary

ModifierConstructor
public ()

Method summary

Modifier and TypeMethod
public static com.google.gson.JsonObject
createSuccessResult(com.google.gson.JsonElement id, com.google.gson.JsonElement result)
method_73648(com.google.gson.JsonElement arg0, com.google.gson.JsonElement arg1)
encodeResult(com.google.gson.JsonElement id, com.google.gson.JsonElement result)
public static com.google.gson.JsonObject
createRequest(Integer id, Identifier method, List<com.google.gson.JsonElement> params)
method_1_5501(Integer arg0, class_2960 arg1, List<com.google.gson.JsonElement> arg2)
encodeRequest(Integer id, Identifier method, List<com.google.gson.JsonElement> parameters)
public static com.google.gson.JsonObject
createRequest(Integer id, String method, List<com.google.gson.JsonElement> params)
method_73650(Integer arg0, String arg1, List<com.google.gson.JsonElement> arg2)
encodeRequest(Integer id, String method, List<com.google.gson.JsonElement> parameters)
public static com.google.gson.JsonObject
createError(com.google.gson.JsonElement id, String message, int errorCode, String data)
method_73649(com.google.gson.JsonElement arg0, String arg1, int arg2, String arg3)
encodeError(com.google.gson.JsonElement id, String message, int code, String data)
public static com.google.gson.JsonElement
getRequestId(com.google.gson.JsonObject jsonObject)
method_73647(com.google.gson.JsonObject arg0)
getId(com.google.gson.JsonObject request)
public static String
getMethodName(com.google.gson.JsonObject jsonObject)
method_73651(com.google.gson.JsonObject arg0)
getMethod(com.google.gson.JsonObject request)
public static com.google.gson.JsonElement
getParams(com.google.gson.JsonObject jsonObject)
method_73652(com.google.gson.JsonObject arg0)
getParameters(com.google.gson.JsonObject request)
public static com.google.gson.JsonElement
getResult(com.google.gson.JsonObject jsonObject)
method_73653(com.google.gson.JsonObject arg0)
getResult(com.google.gson.JsonObject response)
public static com.google.gson.JsonObject
getError(com.google.gson.JsonObject jsonObject)
method_73654(com.google.gson.JsonObject arg0)
getError(com.google.gson.JsonObject response)