Package net.neoforged.neoforge.network
Interface ICustomQueryPayloadWithBuffer
- All Superinterfaces:
CustomQueryAnswerPayload,CustomQueryPayload
- All Known Implementing Classes:
SimpleQueryPayload
Forge extension interface to deal with custom forge query payloads.
-
Method Summary
Modifier and TypeMethodDescriptionbuffer()The buffer that created the query payload.default LoginNetworkDirectiongetDirection(Packet<?> packet) The network direction in which this payload can be transmitted.intThe internal packet processing index for the query.Methods inherited from interface net.minecraft.network.protocol.login.custom.CustomQueryAnswerPayload
writeMethods inherited from interface net.minecraft.network.protocol.login.custom.CustomQueryPayload
id, write
-
Method Details
-
buffer
FriendlyByteBuf buffer()The buffer that created the query payload.- Returns:
- The buffer
-
packetIndex
int packetIndex()The internal packet processing index for the query.- Returns:
- The packet index.
-
getDirection
The network direction in which this payload can be transmitted.- Parameters:
packet- The packet to get the network direction for if this payload was transmitted- Returns:
- The network direction for this payload.
-