Beta
@minecraft/common (Optional in Manifest Details)
{
"module_name": "@minecraft/common",
"version": "1.0.0"
}
@minecraft/server (Required one of the following in Manifest Details)
{
"module_name": "@minecraft/server",
"version": "1.17.0"
}
{
"module_name": "@minecraft/server",
"version": "2.0.0"
}
@minecraft/server-admin (Required in Manifest Details)
{
"module_name": "@minecraft/server-admin",
"version": "1.0.0-beta"
}
Install type definition for @minecraft/server-net
module using npm:
npm i @minecraft/server-net@1.0.0-beta.1.21.90-preview.25
Represents the unique type of network packet.
Represents an HTTP header - a key/value pair of meta-information about a request.
Main object for structuring a request.
Main object that contains result information from a request.
An error thrown when a platform-level HTTP error occurs. Information provided in this class may be useful for diagnostics purposes but will differ from platform to platform.
An error thrown when a malformed HTTP request is attempted to be sent.
Sent as the server receives a network packet from a client. If cancelled, the server will not parse the network packet and will silently ignore it.
Sent as the server sends a network packet to clients. If cancelled, the server will not send the network packet to the receiving clients.
Options for events triggered by network packets.
The
@minecraft/server-net
module contains types for executing HTTP-based requests. This module can only be used on Bedrock Dedicated Server. These APIs do not function within the Minecraft game client or within Minecraft Realms.Manifest Details