Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions v0.1/bedrock-packets.wit
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,18 @@ interface bedrock-packets {
client-throttle-threshold: u8,
client-throttle-scalar: f32,
}
enum c-play-status {
login-success,
outdated-client,
outdated-server,
player-spawn,
invalid-tenant,
edition-mismatch-edu-to-vanilla,
edition-mismatch-vanilla-to-edu,
server-full-sub-client,
editor-mismatch-editor-to-vanilla,
editor-mismatch-vanilla-to-editor,
}
record c-player-hotbar {
selected-slot: s32,
container-id: u8,
Expand Down Expand Up @@ -572,6 +584,7 @@ interface bedrock-packets {
c-move-player(c-move-player),
c-network-chunk-publisher-update(c-network-chunk-publisher-update),
c-network-settings(c-network-settings),
c-play-status(c-play-status),
c-player-hotbar(c-player-hotbar),
c-player-list(c-player-list),
c-connected-pong(c-connected-pong),
Expand Down
10 changes: 5 additions & 5 deletions v0.1/common.wit
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
/// Provides common types and utilities used across the entire plugin API.
interface common {
/// Serialized text component as a postcard byte array.
/// @deprecated Use the text-component resource from the text interface instead.
type raw-text-component = list<u8>;

/// A position in the world grid (integers).
record block-pos {
x: s32,
Expand All @@ -12,7 +8,11 @@ interface common {
}

/// A precise coordinate in the world (floats).
type position = tuple<f64, f64, f64>;
record position {
x: f64,
y: f64,
z: f64,
}

/// Represents the hands of a player.
enum hand {
Expand Down
5 changes: 5 additions & 0 deletions v0.1/java-packets.wit
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,10 @@ interface java-packets {
record s-rename-item {
item-name: string,
}
variant s-seen-advancement {
open-tab(string),
close-tab,
}
record s-select-trade {
selected-slot: s32,
}
Expand Down Expand Up @@ -912,6 +916,7 @@ interface java-packets {
s-recipe-book-change-settings(s-recipe-book-change-settings),
s-recipe-book-seen-recipe(s-recipe-book-seen-recipe),
s-rename-item(s-rename-item),
s-seen-advancement(s-seen-advancement),
s-select-trade(s-select-trade),
s-set-beacon(s-set-beacon),
s-set-command-block(s-set-command-block),
Expand Down