ReflectionCheckReply

class ReflectionCheckReply(val id: Int, val result: ByteBuf) : IncomingGameMessage

A reflection check reply is sent by the client whenever a server requests a reflection checker to be performed.

Constructors

Link copied to clipboard
constructor(id: Int, result: ByteBuf)

Types

Link copied to clipboard

Any error result will be in its own class, as there will not be any return values included in this lot.

Link copied to clipboard

Get field modifiers result will attempt to look up the modifiers of a field.

Link copied to clipboard

Get field value result provides a successful result for retrieving a value of a field in the client.

Link copied to clipboard

Get method modifiers will attempt to look up the modifiers of a method using reflection.

Link copied to clipboard

Invoke method result is sent when a method invocation was successfully performed with the provided arguments and return type.

Link copied to clipboard
Link copied to clipboard

A null return value is sent if a method invocation returned a null value.

Link copied to clipboard

A number return value is sent if a method returns any Number type, in which case the client will call java.lang.Number.longValue to retrieve the long representation of the value.

Link copied to clipboard

Set field value results will only ever be successful if a value was successfully assigned, in which case nothing gets returned.

Link copied to clipboard

A string return value is provided if a method invocation results in a string value.

Link copied to clipboard

An unknown return value is provided when a method returns a value, but that value is not a null, a number of a string - essentially the 'else' case if all else falls through.

Properties

Link copied to clipboard
open override val category: ClientProtCategory
Link copied to clipboard
val id: Int

the original request id sent by the server.

Link copied to clipboard
val result: ByteBuf

the resulting byte buffer slice. As decoding reflection checks requires knowing the original request that was made, we have to defer the decoding of the payload until the original request is provided to us, thus, using decode we can obtain the real results.

Functions

Link copied to clipboard

Decodes the reply using the original request that the server put in. It is worth noting that the result buffer will always be released after the decoding function call, so it may only be called once.

Link copied to clipboard
open override fun toString(): String