Strata
Toggle table of contents
0.2.1
Select version
dev
0.2.2
0.2.1
0.2.0
0.1.6
0.1.5
0.1.4
0.1.3
0.1.2
0.1.1
0.1.0
jvm
Target filter
jvm
Switch theme
Search in API
Skip to content
Strata
minecraft-fabric-1.20.4
/
dev.s7a.strata.runtime.minecraft.fabric
/
FabricRemotePayload
Fabric
Remote
Payload
class
FabricRemotePayload
:
CustomPacketPayload
(
source
)
Opaque Strata frame for the native payload protocol preceding stream codecs.
Members
Constructors
Fabric
Remote
Payload
Link copied to clipboard
constructor
(
bytes
:
Array
<
Byte
>
)
Copies a bounded message independently of its caller-owned storage.
Properties
ID
Link copied to clipboard
val
ID
:
ResourceLocation
Functions
bytes
Link copied to clipboard
open
fun
bytes
(
)
:
Array
<
Byte
>
Returns a detached frame for the receiving adapter's queue.
id
Link copied to clipboard
@
NotNull
open
fun
id
(
)
:
@
NotNull
ResourceLocation
read
Link copied to clipboard
open
fun
read
(
buffer
:
FriendlyByteBuf
)
:
FabricRemotePayload
Copies a bounded native payload before its packet buffer is released.
write
Link copied to clipboard
open
fun
write
(
buffer
:
FriendlyByteBuf
)