From 9d73df19ce64d9bb9a67fd79fab7e5bdae1daf0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20N=C3=BCcke?= Date: Sun, 23 Jan 2022 11:58:12 +0100 Subject: [PATCH] Mention the JsonArray special case on the getParameters method. --- src/main/java/li/cil/oc2/api/bus/device/rpc/RPCMethod.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/li/cil/oc2/api/bus/device/rpc/RPCMethod.java b/src/main/java/li/cil/oc2/api/bus/device/rpc/RPCMethod.java index 8b0f2de5..6d23486f 100644 --- a/src/main/java/li/cil/oc2/api/bus/device/rpc/RPCMethod.java +++ b/src/main/java/li/cil/oc2/api/bus/device/rpc/RPCMethod.java @@ -1,5 +1,6 @@ package li.cil.oc2.api.bus.device.rpc; +import com.google.gson.JsonArray; import li.cil.oc2.api.bus.DeviceBusController; import li.cil.oc2.api.bus.device.object.ObjectDevice; @@ -46,6 +47,10 @@ public interface RPCMethod { /** * The list of parameters this method accepts. + *

+ * Special case: when returning {@link JsonArray} as the one and only parameter type, no automatic type + * deserialization will be performed prior to calling {@link #invoke(Object...)}. The received RPC parameters will + * instead be passed along directly, in form of a {@link JsonArray}. * * @return the list of parameters. */