Skip to content
This repository was archived by the owner on Jun 3, 2021. It is now read-only.

Networking docs

yitzy299 edited this page Mar 26, 2021 · 6 revisions

This page is a list of the packet formats and structures used for communicating between a client with a compatible mod and a server with DeltaLogger.

Search packet

Class: SearchPacket

Client to server

Takes a String in the same format as the command itself, as the String will be parsed like the search command is

Identifier: deltalogger:search_c2s_packet

Code example

C2S

buf.writeString("limit:10")

Server to client

Returns the types of packets relevant to the search result, see below

Identifier: deltalogger:search_s2c_packet

Inspect packet

Identifier: deltalogger:inspect

int 0: X coordinate int 1: Y coordinate int 2: Z coordinate short 3: Integer limit for transactions

Bean packets

Placement packet

Class: NetworkUtils Identifier: deltalogger:placement

A representation of a Placement as a packet

int 0: X coordinate int 1: Y coordinate int 2: Z coordinate boolean 3: If true, the block was placed byte[] 4: Representation of the player name as a UTF 8 byte array long 5: Time, as epoch second byte[] 6: Block type as a UTF 8 byte array byte[] 7: BlockState NBT represented as a UTF 8 byte array

Transaction packet

A representation of a TransactionPos as a packet

Identifier: deltalogger:transaction

int 0: X coordinate int 1: Y coordinate int 2: Z coordinate byte[] 3: Representation of the player name as a UTF 8 byte array long 4: Time, as epoch second int 5: Number of items changed byte[] 6: Item type represented as a UTF 8 byte array

Clone this wiki locally