Port to 26.2

This commit is contained in:
Alexander Medvedev 2026-06-20 19:54:17 +02:00
parent 9e87f503d0
commit 0d865a31bd
8 changed files with 151 additions and 25 deletions

View File

@ -14,6 +14,11 @@ interface bedrock-packets {
data: f32, data: f32,
swing-source: option<string>, swing-source: option<string>,
} }
record s-block-pick-request {
block-pos: tuple<s32, s32, s32>,
add-block-nbt: bool,
hotbar-slot: u8,
}
record s-client-cache-status { record s-client-cache-status {
cache-supported: bool, cache-supported: bool,
} }
@ -51,10 +56,14 @@ interface bedrock-packets {
record s-inventory-transaction { record s-inventory-transaction {
legacy-request-id: s32, legacy-request-id: s32,
legacy-set-item-slots: list<string>, legacy-set-item-slots: list<string>,
has-value: bool,
actions: list<string>, actions: list<string>,
transaction-type: s32, transaction-type: s32,
transaction-data: string, transaction-data: string,
} }
record s-item-stack-request {
requests: list<string>,
}
record s-loading-screen { record s-loading-screen {
status: s32, status: s32,
id: option<s32>, id: option<s32>,
@ -64,6 +73,14 @@ interface bedrock-packets {
jwt: list<u8>, jwt: list<u8>,
raw-token: list<u8>, raw-token: list<u8>,
} }
record s-mob-equipment {
entity-runtime-id: string,
stack-id: s32,
item: option<string>,
inventory-slot: u8,
hotbar-slot: u8,
window-id: u8,
}
record s-modal-form-response { record s-modal-form-response {
form-id: s32, form-id: s32,
form-data: option<string>, form-data: option<string>,
@ -165,6 +182,15 @@ interface bedrock-packets {
synced-properties: string, synced-properties: string,
links: list<string>, links: list<string>,
} }
record c-add-item-actor {
entity-unique-id: string,
entity-runtime-id: string,
item: string,
position: tuple<f64, f64, f64>,
velocity: tuple<f64, f64, f64>,
metadata: string,
from-fishing: bool,
}
record c-add-player { record c-add-player {
uuid: uuid, uuid: uuid,
username: string, username: string,
@ -214,7 +240,7 @@ interface bedrock-packets {
on-ground: bool, on-ground: bool,
tick: string, tick: string,
} }
record creative-content { record c-creative-content {
groups: list<string>, groups: list<string>,
entries: list<string>, entries: list<string>,
} }
@ -231,12 +257,17 @@ interface bedrock-packets {
jwt-data: string, jwt-data: string,
} }
record c-inventory-content { record c-inventory-content {
inventory-id: s32, container-id: s32,
slots: list<string>, slots: list<string>,
container-name: u8, full-container-name: string,
dynamic-id: option<s32>,
storage-item: string, storage-item: string,
} }
record c-item-registry {
items: list<string>,
}
record c-item-stack-response {
responses: list<string>,
}
record c-level-chunk { record c-level-chunk {
dimension: s32, dimension: s32,
cache-enabled: bool, cache-enabled: bool,
@ -429,9 +460,14 @@ interface bedrock-packets {
enable-clientside-generation: bool, enable-clientside-generation: bool,
blocknetwork-ids-are-hashed: bool, blocknetwork-ids-are-hashed: bool,
server-auth-sounds: bool, server-auth-sounds: bool,
is-logging-chat: bool,
server-join-information: option<string>, server-join-information: option<string>,
telemetry: string, telemetry: string,
} }
record c-take-item-actor {
item-runtime-id: string,
actor-runtime-id: string,
}
record c-transfer { record c-transfer {
address: string, address: string,
port: s32, port: s32,
@ -457,6 +493,7 @@ interface bedrock-packets {
variant serverbound-packet { variant serverbound-packet {
s-actor-event(s-actor-event), s-actor-event(s-actor-event),
s-animate(s-animate), s-animate(s-animate),
s-block-pick-request(s-block-pick-request),
s-client-cache-status(s-client-cache-status), s-client-cache-status(s-client-cache-status),
s-command-request(s-command-request), s-command-request(s-command-request),
s-container-close(s-container-close), s-container-close(s-container-close),
@ -464,8 +501,10 @@ interface bedrock-packets {
s-emote-list(s-emote-list), s-emote-list(s-emote-list),
s-interaction(s-interaction), s-interaction(s-interaction),
s-inventory-transaction(s-inventory-transaction), s-inventory-transaction(s-inventory-transaction),
s-item-stack-request(s-item-stack-request),
s-loading-screen(s-loading-screen), s-loading-screen(s-loading-screen),
s-login(s-login), s-login(s-login),
s-mob-equipment(s-mob-equipment),
s-modal-form-response(s-modal-form-response), s-modal-form-response(s-modal-form-response),
s-player-action(s-player-action), s-player-action(s-player-action),
s-player-auth-input(s-player-auth-input), s-player-auth-input(s-player-auth-input),
@ -485,17 +524,20 @@ interface bedrock-packets {
} }
variant clientbound-packet { variant clientbound-packet {
c-add-actor(c-add-actor), c-add-actor(c-add-actor),
c-add-item-actor(c-add-item-actor),
c-add-player(c-add-player), c-add-player(c-add-player),
c-available-commands(c-available-commands), c-available-commands(c-available-commands),
c-boss-event(c-boss-event), c-boss-event(c-boss-event),
c-chunk-radius-update(c-chunk-radius-update), c-chunk-radius-update(c-chunk-radius-update),
c-container-open(c-container-open), c-container-open(c-container-open),
c-correct-player-move(c-correct-player-move), c-correct-player-move(c-correct-player-move),
creative-content(creative-content), c-creative-content(c-creative-content),
c-disconnect-player(c-disconnect-player), c-disconnect-player(c-disconnect-player),
c-gamerules-changed(c-gamerules-changed), c-gamerules-changed(c-gamerules-changed),
c-handshake(c-handshake), c-handshake(c-handshake),
c-inventory-content(c-inventory-content), c-inventory-content(c-inventory-content),
c-item-registry(c-item-registry),
c-item-stack-response(c-item-stack-response),
c-level-chunk(c-level-chunk), c-level-chunk(c-level-chunk),
c-level-event(c-level-event), c-level-event(c-level-event),
c-modal-form-request(c-modal-form-request), c-modal-form-request(c-modal-form-request),
@ -525,6 +567,7 @@ interface bedrock-packets {
c-set-time(c-set-time), c-set-time(c-set-time),
c-set-title(c-set-title), c-set-title(c-set-title),
c-start-game(c-start-game), c-start-game(c-start-game),
c-take-item-actor(c-take-item-actor),
c-transfer(c-transfer), c-transfer(c-transfer),
c-update-abilities(c-update-abilities), c-update-abilities(c-update-abilities),
c-update-attributes(c-update-attributes), c-update-attributes(c-update-attributes),

View File

@ -55,6 +55,7 @@ interface biomes {
sparse-jungle, sparse-jungle,
stony-peaks, stony-peaks,
stony-shore, stony-shore,
sulfur-caves,
sunflower-plains, sunflower-plains,
swamp, swamp,
taiga, taiga,

View File

@ -80,6 +80,7 @@ interface data-components {
container, container,
block-state, block-state,
bees, bees,
sulfur-cube-content,
lock, lock,
container-loot, container-loot,
break-sound, break-sound,

View File

@ -134,6 +134,7 @@ interface entity-types {
squid, squid,
stray, stray,
strider, strider,
sulfur-cube,
tadpole, tadpole,
text-display, text-display,
tnt, tnt,

View File

@ -79,6 +79,11 @@ interface java-packets {
hand: option<s32>, hand: option<s32>,
sneaking: bool, sneaking: bool,
} }
record s-jigsaw-generate {
pos: tuple<s32, s32, s32>,
levels: s32,
keep-jigsaws: bool,
}
record s-keep-alive { record s-keep-alive {
keep-alive-id: s64, keep-alive-id: s64,
} }
@ -181,6 +186,16 @@ interface java-packets {
record s-set-held-item { record s-set-held-item {
slot: s32, slot: s32,
} }
record s-set-jigsaw-block {
pos: tuple<s32, s32, s32>,
name: string,
target: string,
pool: string,
final-state: string,
joint: string,
selection-priority: s32,
placement-priority: s32,
}
record s-swing-arm { record s-swing-arm {
hand: s32, hand: s32,
} }
@ -213,6 +228,9 @@ interface java-packets {
record c-action-bar { record c-action-bar {
action-bar: string, action-bar: string,
} }
record c-award-stats {
stats: list<string>,
}
record c-set-block-destroy-stage { record c-set-block-destroy-stage {
entity-id: s32, entity-id: s32,
location: tuple<s32, s32, s32>, location: tuple<s32, s32, s32>,
@ -381,15 +399,8 @@ interface java-packets {
reduced-debug-info: bool, reduced-debug-info: bool,
enabled-respawn-screen: bool, enabled-respawn-screen: bool,
limited-crafting: bool, limited-crafting: bool,
dimension: string, spawn-data: string,
hashed-seed: s64, online-mode: bool,
game-mode: u8,
previous-gamemode: u8,
debug: bool,
is-flat: bool,
death-dimension-name: option<string>,
portal-cooldown: s32,
sealevel: s32,
enforce-secure-chat: bool, enforce-secure-chat: bool,
} }
record c-map-item-data { record c-map-item-data {
@ -499,16 +510,7 @@ interface java-packets {
objective-name: option<string>, objective-name: option<string>,
} }
record c-respawn { record c-respawn {
dimension-type: s32, player-spawn-info: string,
dimension-name: string,
hashed-seed: s64,
game-mode: u8,
previous-gamemode: u8,
debug: bool,
is-flat: bool,
death-dimension-name: option<string>,
portal-cooldown: s32,
sealevel: s32,
data-kept: u8, data-kept: u8,
} }
record c-play-server-links { record c-play-server-links {
@ -729,6 +731,7 @@ interface java-packets {
s-custom-click-action(s-custom-click-action), s-custom-click-action(s-custom-click-action),
s-custom-payload(s-custom-payload), s-custom-payload(s-custom-payload),
s-interact(s-interact), s-interact(s-interact),
s-jigsaw-generate(s-jigsaw-generate),
s-keep-alive(s-keep-alive), s-keep-alive(s-keep-alive),
s-move-vehicle(s-move-vehicle), s-move-vehicle(s-move-vehicle),
s-paddle-boat(s-paddle-boat), s-paddle-boat(s-paddle-boat),
@ -754,6 +757,7 @@ interface java-packets {
s-set-command-block(s-set-command-block), s-set-command-block(s-set-command-block),
s-set-creative-slot(s-set-creative-slot), s-set-creative-slot(s-set-creative-slot),
s-set-held-item(s-set-held-item), s-set-held-item(s-set-held-item),
s-set-jigsaw-block(s-set-jigsaw-block),
s-swing-arm(s-swing-arm), s-swing-arm(s-swing-arm),
s-update-sign(s-update-sign), s-update-sign(s-update-sign),
s-use-item(s-use-item), s-use-item(s-use-item),
@ -763,6 +767,7 @@ interface java-packets {
variant clientbound-packet { variant clientbound-packet {
c-acknowledge-block-change(c-acknowledge-block-change), c-acknowledge-block-change(c-acknowledge-block-change),
c-action-bar(c-action-bar), c-action-bar(c-action-bar),
c-award-stats(c-award-stats),
c-set-block-destroy-stage(c-set-block-destroy-stage), c-set-block-destroy-stage(c-set-block-destroy-stage),
c-block-entity-data(c-block-entity-data), c-block-entity-data(c-block-entity-data),
c-block-event(c-block-event), c-block-event(c-block-event),

View File

@ -6,6 +6,13 @@ interface particles {
block, block,
block-marker, block-marker,
bubble, bubble,
sulfur-bubbles,
noxious-gas,
noxious-gas-cloud,
geyser,
geyser-base,
geyser-poof,
geyser-plume,
cloud, cloud,
copper-fire-flame, copper-fire-flame,
crit, crit,
@ -119,5 +126,6 @@ interface particles {
trial-omen, trial-omen,
block-crumble, block-crumble,
firefly, firefly,
sulfur-cube-goo,
} }
} }

View File

@ -398,13 +398,14 @@ interface player {
v-1-21-9, v-1-21-9,
v-1-21-11, v-1-21-11,
v-26-1, v-26-1,
v-26-2,
unknown, unknown,
} }
/// Represents a specific version of the Minecraft Bedrock Edition protocol. /// Represents a specific version of the Minecraft Bedrock Edition protocol.
enum bedrock-minecraft-version { enum bedrock-minecraft-version {
v-1-21, v-1-21,
v-1-26-20, v-1-26-30,
unknown, unknown,
} }

View File

@ -230,12 +230,14 @@ interface sounds {
item-bucket-empty-fish, item-bucket-empty-fish,
item-bucket-empty-lava, item-bucket-empty-lava,
item-bucket-empty-powder-snow, item-bucket-empty-powder-snow,
item-bucket-empty-sulfur-cube,
item-bucket-empty-tadpole, item-bucket-empty-tadpole,
item-bucket-fill, item-bucket-fill,
item-bucket-fill-axolotl, item-bucket-fill-axolotl,
item-bucket-fill-fish, item-bucket-fill-fish,
item-bucket-fill-lava, item-bucket-fill-lava,
item-bucket-fill-powder-snow, item-bucket-fill-powder-snow,
item-bucket-fill-sulfur-cube,
item-bucket-fill-tadpole, item-bucket-fill-tadpole,
item-bundle-drop-contents, item-bundle-drop-contents,
item-bundle-insert, item-bundle-insert,
@ -1033,6 +1035,7 @@ interface sounds {
music-disc-11, music-disc-11,
music-disc-13, music-disc-13,
music-disc-blocks, music-disc-blocks,
music-disc-bounce,
music-disc-cat, music-disc-cat,
music-disc-chirp, music-disc-chirp,
music-disc-far, music-disc-far,
@ -1078,6 +1081,7 @@ interface sounds {
music-overworld-jungle, music-overworld-jungle,
music-overworld-sparse-jungle, music-overworld-sparse-jungle,
music-overworld-bamboo-jungle, music-overworld-bamboo-jungle,
music-overworld-sulfur-caves,
music-under-water, music-under-water,
entity-nautilus-ambient, entity-nautilus-ambient,
entity-nautilus-ambient-land, entity-nautilus-ambient-land,
@ -1607,6 +1611,12 @@ interface sounds {
entity-stray-death, entity-stray-death,
entity-stray-hurt, entity-stray-hurt,
entity-stray-step, entity-stray-step,
block-sulfur-spike-break,
block-sulfur-spike-step,
block-sulfur-spike-place,
block-sulfur-spike-hit,
block-sulfur-spike-fall,
block-sulfur-spike-land,
block-sweet-berry-bush-break, block-sweet-berry-bush-break,
block-sweet-berry-bush-place, block-sweet-berry-bush-place,
block-sweet-berry-bush-pick-berries, block-sweet-berry-bush-pick-berries,
@ -1904,5 +1914,61 @@ interface sounds {
item-saddle-unequip, item-saddle-unequip,
item-nautilus-saddle-underwater-equip, item-nautilus-saddle-underwater-equip,
item-nautilus-saddle-equip, item-nautilus-saddle-equip,
block-sulfur-break,
block-sulfur-step,
block-sulfur-place,
block-sulfur-hit,
block-sulfur-fall,
block-potent-sulfur-break,
block-potent-sulfur-step,
block-potent-sulfur-place,
block-potent-sulfur-hit,
block-potent-sulfur-fall,
block-potent-sulfur-geyser-eruption,
block-potent-sulfur-geyser-eruption-active,
block-potent-sulfur-geyser-continuous-eruption,
block-potent-sulfur-geyser-continuous-eruption-active,
block-cinnabar-break,
block-cinnabar-step,
block-cinnabar-place,
block-cinnabar-hit,
block-cinnabar-fall,
entity-sulfur-cube-absorb,
entity-sulfur-cube-bounce,
entity-sulfur-cube-death,
entity-sulfur-cube-eject,
entity-sulfur-cube-hurt,
entity-sulfur-cube-jump,
entity-sulfur-cube-regular-hit,
entity-sulfur-cube-regular-push,
entity-sulfur-cube-bouncy-hit,
entity-sulfur-cube-bouncy-push,
entity-sulfur-cube-slow-bouncy-hit,
entity-sulfur-cube-slow-bouncy-push,
entity-sulfur-cube-slow-flat-hit,
entity-sulfur-cube-slow-flat-push,
entity-sulfur-cube-fast-flat-hit,
entity-sulfur-cube-fast-flat-push,
entity-sulfur-cube-light-hit,
entity-sulfur-cube-light-push,
entity-sulfur-cube-fast-sliding-hit,
entity-sulfur-cube-fast-sliding-push,
entity-sulfur-cube-slow-sliding-hit,
entity-sulfur-cube-slow-sliding-push,
entity-sulfur-cube-sticky-hit,
entity-sulfur-cube-sticky-push,
entity-sulfur-cube-high-resistance-hit,
entity-sulfur-cube-high-resistance-push,
entity-sulfur-cube-explosive-hit,
entity-sulfur-cube-explosive-push,
entity-sulfur-cube-hot-hit,
entity-sulfur-cube-hot-push,
entity-sulfur-cube-squish,
block-potent-sulfur-noxious-gas,
entity-small-sulfur-cube-death,
entity-small-sulfur-cube-hurt,
entity-small-sulfur-cube-jump,
entity-small-sulfur-cube-squish,
entity-small-sulfur-cube-eat,
} }
} }