This commit is contained in:
parent
60bb3cd429
commit
f8ccb8a9d3
145
src/plugin.wit
145
src/plugin.wit
@ -70,6 +70,7 @@ interface biomes {
|
|||||||
cherry-grove,
|
cherry-grove,
|
||||||
cold-ocean,
|
cold-ocean,
|
||||||
crimson-forest,
|
crimson-forest,
|
||||||
|
dappled-forest,
|
||||||
dark-forest,
|
dark-forest,
|
||||||
deep-cold-ocean,
|
deep-cold-ocean,
|
||||||
deep-dark,
|
deep-dark,
|
||||||
@ -491,12 +492,14 @@ interface data-components {
|
|||||||
blocks-attacks,
|
blocks-attacks,
|
||||||
piercing-weapon,
|
piercing-weapon,
|
||||||
kinetic-weapon,
|
kinetic-weapon,
|
||||||
swing-animation,
|
attack-animation,
|
||||||
|
interact-animation,
|
||||||
additional-trade-cost,
|
additional-trade-cost,
|
||||||
|
block-transformer,
|
||||||
|
villager-food,
|
||||||
stored-enchantments,
|
stored-enchantments,
|
||||||
dye,
|
dye,
|
||||||
dyed-color,
|
dyed-color,
|
||||||
map-color,
|
|
||||||
map-id,
|
map-id,
|
||||||
map-decorations,
|
map-decorations,
|
||||||
map-post-processing,
|
map-post-processing,
|
||||||
@ -533,6 +536,10 @@ interface data-components {
|
|||||||
lock,
|
lock,
|
||||||
container-loot,
|
container-loot,
|
||||||
break-sound,
|
break-sound,
|
||||||
|
compostable,
|
||||||
|
cooking-fuel,
|
||||||
|
brewing-fuel,
|
||||||
|
mob-visibility,
|
||||||
villager-variant,
|
villager-variant,
|
||||||
wolf-variant,
|
wolf-variant,
|
||||||
wolf-sound-variant,
|
wolf-sound-variant,
|
||||||
@ -562,6 +569,11 @@ interface data-components {
|
|||||||
cat-collar,
|
cat-collar,
|
||||||
sheep-color,
|
sheep-color,
|
||||||
shulker-color,
|
shulker-color,
|
||||||
|
provides-pottery-pattern,
|
||||||
|
sign-text-front,
|
||||||
|
sign-text-back,
|
||||||
|
waxed,
|
||||||
|
cushion-color,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -614,6 +626,8 @@ interface entity-statuses {
|
|||||||
enum entity-status {
|
enum entity-status {
|
||||||
armadillo-peek,
|
armadillo-peek,
|
||||||
armorstand-wobble,
|
armorstand-wobble,
|
||||||
|
boat-launch,
|
||||||
|
boat-sink,
|
||||||
body-break,
|
body-break,
|
||||||
cancel-shake-wetness,
|
cancel-shake-wetness,
|
||||||
chest-break,
|
chest-break,
|
||||||
@ -712,6 +726,7 @@ interface entity-types {
|
|||||||
cow,
|
cow,
|
||||||
creaking,
|
creaking,
|
||||||
creeper,
|
creeper,
|
||||||
|
cushion,
|
||||||
dark-oak-boat,
|
dark-oak-boat,
|
||||||
dark-oak-chest-boat,
|
dark-oak-chest-boat,
|
||||||
dolphin,
|
dolphin,
|
||||||
@ -787,6 +802,8 @@ interface entity-types {
|
|||||||
pillager,
|
pillager,
|
||||||
player,
|
player,
|
||||||
polar-bear,
|
polar-bear,
|
||||||
|
poplar-boat,
|
||||||
|
poplar-chest-boat,
|
||||||
pufferfish,
|
pufferfish,
|
||||||
rabbit,
|
rabbit,
|
||||||
ravager,
|
ravager,
|
||||||
@ -1087,6 +1104,9 @@ interface particles {
|
|||||||
infested,
|
infested,
|
||||||
cherry-leaves,
|
cherry-leaves,
|
||||||
pale-oak-leaves,
|
pale-oak-leaves,
|
||||||
|
red-poplar-leaves,
|
||||||
|
orange-poplar-leaves,
|
||||||
|
yellow-poplar-leaves,
|
||||||
tinted-leaves,
|
tinted-leaves,
|
||||||
sculk-soul,
|
sculk-soul,
|
||||||
sculk-charge,
|
sculk-charge,
|
||||||
@ -1833,6 +1853,10 @@ interface sounds {
|
|||||||
item-crossbow-quick-charge-2,
|
item-crossbow-quick-charge-2,
|
||||||
item-crossbow-quick-charge-3,
|
item-crossbow-quick-charge-3,
|
||||||
item-crossbow-shoot,
|
item-crossbow-shoot,
|
||||||
|
entity-cushion-break,
|
||||||
|
entity-cushion-place,
|
||||||
|
entity-cushion-sit,
|
||||||
|
entity-cushion-get-up,
|
||||||
block-deadbush-idle,
|
block-deadbush-idle,
|
||||||
block-decorated-pot-break,
|
block-decorated-pot-break,
|
||||||
block-decorated-pot-fall,
|
block-decorated-pot-fall,
|
||||||
@ -3309,6 +3333,25 @@ interface sounds {
|
|||||||
entity-small-sulfur-cube-jump,
|
entity-small-sulfur-cube-jump,
|
||||||
entity-small-sulfur-cube-squish,
|
entity-small-sulfur-cube-squish,
|
||||||
entity-small-sulfur-cube-eat,
|
entity-small-sulfur-cube-eat,
|
||||||
|
block-shelf-mushroom-break,
|
||||||
|
block-shelf-mushroom-fall,
|
||||||
|
block-shelf-mushroom-place,
|
||||||
|
block-shelf-mushroom-step,
|
||||||
|
block-shelf-mushroom-bounce,
|
||||||
|
block-poplar-leaves-break,
|
||||||
|
block-poplar-leaves-hit,
|
||||||
|
block-poplar-leaves-fall,
|
||||||
|
block-poplar-leaves-place,
|
||||||
|
block-poplar-leaves-step,
|
||||||
|
block-poplar-leaves-ambient,
|
||||||
|
block-straw-bed-break,
|
||||||
|
block-straw-bed-break-leave,
|
||||||
|
block-straw-bed-step,
|
||||||
|
block-straw-bed-place,
|
||||||
|
block-straw-bed-hit,
|
||||||
|
block-straw-bed-fall,
|
||||||
|
block-red-shrub-break,
|
||||||
|
block-red-shrub-place,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -3387,6 +3430,7 @@ interface statistics {
|
|||||||
interact-with-crafting-table,
|
interact-with-crafting-table,
|
||||||
open-chest,
|
open-chest,
|
||||||
sleep-in-bed,
|
sleep-in-bed,
|
||||||
|
sleep-in-straw-bed,
|
||||||
open-shulker-box,
|
open-shulker-box,
|
||||||
open-barrel,
|
open-barrel,
|
||||||
interact-with-blast-furnace,
|
interact-with-blast-furnace,
|
||||||
@ -4863,6 +4907,11 @@ interface bedrock-packets {
|
|||||||
slots: list<u8>,
|
slots: list<u8>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
enum hand-slot {
|
||||||
|
mainhand,
|
||||||
|
offhand,
|
||||||
|
}
|
||||||
|
|
||||||
record stack-request-item {
|
record stack-request-item {
|
||||||
identifier: option<string>,
|
identifier: option<string>,
|
||||||
metadata-value: s32,
|
metadata-value: s32,
|
||||||
@ -5350,7 +5399,7 @@ interface bedrock-packets {
|
|||||||
dedicated,
|
dedicated,
|
||||||
tv-os,
|
tv-os,
|
||||||
sony,
|
sony,
|
||||||
nx,
|
nintendo,
|
||||||
xbox,
|
xbox,
|
||||||
windows-phone,
|
windows-phone,
|
||||||
linux,
|
linux,
|
||||||
@ -5444,9 +5493,19 @@ interface bedrock-packets {
|
|||||||
tick: s64,
|
tick: s64,
|
||||||
}
|
}
|
||||||
|
|
||||||
record item-descriptor-count {
|
record recipe-item-descriptor-item {
|
||||||
item-identifier: string,
|
identifier: string,
|
||||||
metadata-value: s32,
|
metadata-value: s32,
|
||||||
|
}
|
||||||
|
|
||||||
|
variant recipe-item-descriptor {
|
||||||
|
empty,
|
||||||
|
item(recipe-item-descriptor-item),
|
||||||
|
tag(string),
|
||||||
|
}
|
||||||
|
|
||||||
|
record item-descriptor-count {
|
||||||
|
descriptor: recipe-item-descriptor,
|
||||||
count: s32,
|
count: s32,
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -6101,7 +6160,7 @@ interface bedrock-packets {
|
|||||||
block-position: tuple<s32, s32, s32>,
|
block-position: tuple<s32, s32, s32>,
|
||||||
block-face: u8,
|
block-face: u8,
|
||||||
hot-bar-slot: s32,
|
hot-bar-slot: s32,
|
||||||
hand: u8,
|
hand: hand-slot,
|
||||||
item-in-hand: network-item-descriptor,
|
item-in-hand: network-item-descriptor,
|
||||||
player-position: tuple<f64, f64, f64>,
|
player-position: tuple<f64, f64, f64>,
|
||||||
click-position: tuple<f64, f64, f64>,
|
click-position: tuple<f64, f64, f64>,
|
||||||
@ -6771,6 +6830,9 @@ interface java-packets {
|
|||||||
|
|
||||||
record s-confirm-teleport {
|
record s-confirm-teleport {
|
||||||
teleport-id: s32,
|
teleport-id: s32,
|
||||||
|
position: tuple<f64, f64, f64>,
|
||||||
|
yaw: f32,
|
||||||
|
pitch: f32,
|
||||||
}
|
}
|
||||||
|
|
||||||
record s-container-button-click {
|
record s-container-button-click {
|
||||||
@ -6902,6 +6964,7 @@ interface java-packets {
|
|||||||
release-item-in-use,
|
release-item-in-use,
|
||||||
swap-item,
|
swap-item,
|
||||||
spear-jab,
|
spear-jab,
|
||||||
|
change-destroy-direction,
|
||||||
}
|
}
|
||||||
|
|
||||||
enum action {
|
enum action {
|
||||||
@ -7205,6 +7268,10 @@ interface java-packets {
|
|||||||
data: list<u8>,
|
data: list<u8>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
record config-c-config-post-effects {
|
||||||
|
effects: list<string>,
|
||||||
|
}
|
||||||
|
|
||||||
record config-c-registry-data {
|
record config-c-registry-data {
|
||||||
registry-id: string,
|
registry-id: string,
|
||||||
entries: list<string>,
|
entries: list<string>,
|
||||||
@ -7352,6 +7419,19 @@ interface java-packets {
|
|||||||
batch-size: s32,
|
batch-size: s32,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
record chunk-heightmaps {
|
||||||
|
world-surface: option<list<s64>>,
|
||||||
|
motion-blocking: option<list<s64>>,
|
||||||
|
motion-blocking-no-leaves: option<list<s64>>,
|
||||||
|
}
|
||||||
|
|
||||||
|
record chunk-block-entity {
|
||||||
|
packed-xz: u8,
|
||||||
|
y: s32,
|
||||||
|
type-id: s32,
|
||||||
|
data: string,
|
||||||
|
}
|
||||||
|
|
||||||
record chunk-biome-entry {
|
record chunk-biome-entry {
|
||||||
chunk-x: s32,
|
chunk-x: s32,
|
||||||
chunk-z: s32,
|
chunk-z: s32,
|
||||||
@ -7624,6 +7704,11 @@ interface java-packets {
|
|||||||
animation: u8,
|
animation: u8,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
record c-swing-arm {
|
||||||
|
entity-id: s32,
|
||||||
|
off-hand: bool,
|
||||||
|
}
|
||||||
|
|
||||||
enum animation {
|
enum animation {
|
||||||
swing-main-arm,
|
swing-main-arm,
|
||||||
leave-bed,
|
leave-bed,
|
||||||
@ -7755,6 +7840,15 @@ interface java-packets {
|
|||||||
block-light-arrays: list<list<u8>>,
|
block-light-arrays: list<list<u8>>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
record c-chunk-data {
|
||||||
|
chunk-x: s32,
|
||||||
|
chunk-z: s32,
|
||||||
|
heightmaps: chunk-heightmaps,
|
||||||
|
data: list<u8>,
|
||||||
|
block-entities: list<chunk-block-entity>,
|
||||||
|
light-data: light-data,
|
||||||
|
}
|
||||||
|
|
||||||
record c-light-update {
|
record c-light-update {
|
||||||
chunk-x: s32,
|
chunk-x: s32,
|
||||||
chunk-z: s32,
|
chunk-z: s32,
|
||||||
@ -7980,6 +8074,10 @@ interface java-packets {
|
|||||||
pitch: f32,
|
pitch: f32,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
record c-post-effects {
|
||||||
|
effects: list<string>,
|
||||||
|
}
|
||||||
|
|
||||||
record c-projectile-power {
|
record c-projectile-power {
|
||||||
entity-id: s32,
|
entity-id: s32,
|
||||||
x-power: f64,
|
x-power: f64,
|
||||||
@ -8188,7 +8286,7 @@ interface java-packets {
|
|||||||
position: tuple<f64, f64, f64>,
|
position: tuple<f64, f64, f64>,
|
||||||
volume: f32,
|
volume: f32,
|
||||||
pitch: f32,
|
pitch: f32,
|
||||||
seed: f64,
|
seed: s64,
|
||||||
}
|
}
|
||||||
|
|
||||||
record c-spawn-entity {
|
record c-spawn-entity {
|
||||||
@ -8203,27 +8301,6 @@ interface java-packets {
|
|||||||
data: s32,
|
data: s32,
|
||||||
}
|
}
|
||||||
|
|
||||||
record c-spawn-living-entity {
|
|
||||||
entity-id: s32,
|
|
||||||
entity-uuid: uuid,
|
|
||||||
r-type: s32,
|
|
||||||
position: tuple<f64, f64, f64>,
|
|
||||||
yaw: u8,
|
|
||||||
pitch: u8,
|
|
||||||
head-yaw: u8,
|
|
||||||
velocity: string,
|
|
||||||
metadata: option<list<u8>>,
|
|
||||||
}
|
|
||||||
|
|
||||||
record c-spawn-painting {
|
|
||||||
entity-id: s32,
|
|
||||||
uuid: uuid,
|
|
||||||
title: string,
|
|
||||||
%variant: s32,
|
|
||||||
location: tuple<s32, s32, s32>,
|
|
||||||
direction: u8,
|
|
||||||
}
|
|
||||||
|
|
||||||
record c-stop-sound {
|
record c-stop-sound {
|
||||||
sound-id: option<string>,
|
sound-id: option<string>,
|
||||||
category: option<string>,
|
category: option<string>,
|
||||||
@ -8417,11 +8494,6 @@ interface java-packets {
|
|||||||
tags: list<string>,
|
tags: list<string>,
|
||||||
}
|
}
|
||||||
|
|
||||||
record c-use-bed {
|
|
||||||
entity-id: s32,
|
|
||||||
location: tuple<s32, s32, s32>,
|
|
||||||
}
|
|
||||||
|
|
||||||
enum waypoint-operation {
|
enum waypoint-operation {
|
||||||
track,
|
track,
|
||||||
untrack,
|
untrack,
|
||||||
@ -8549,7 +8621,6 @@ interface java-packets {
|
|||||||
s-set-structure-block(s-set-structure-block),
|
s-set-structure-block(s-set-structure-block),
|
||||||
s-set-test-block(s-set-test-block),
|
s-set-test-block(s-set-test-block),
|
||||||
s-spectate-entity(s-spectate-entity),
|
s-spectate-entity(s-spectate-entity),
|
||||||
s-swing-arm(s-swing-arm),
|
|
||||||
s-teleport-to-entity(s-teleport-to-entity),
|
s-teleport-to-entity(s-teleport-to-entity),
|
||||||
s-test-instance-block-action(s-test-instance-block-action),
|
s-test-instance-block-action(s-test-instance-block-action),
|
||||||
s-update-sign(s-update-sign),
|
s-update-sign(s-update-sign),
|
||||||
@ -8572,6 +8643,7 @@ interface java-packets {
|
|||||||
config-c-known-packs(config-c-known-packs),
|
config-c-known-packs(config-c-known-packs),
|
||||||
config-c-config-ping(config-c-config-ping),
|
config-c-config-ping(config-c-config-ping),
|
||||||
config-c-plugin-message(config-c-plugin-message),
|
config-c-plugin-message(config-c-plugin-message),
|
||||||
|
config-c-config-post-effects(config-c-config-post-effects),
|
||||||
config-c-registry-data(config-c-registry-data),
|
config-c-registry-data(config-c-registry-data),
|
||||||
config-c-config-remove-resource-pack(config-c-config-remove-resource-pack),
|
config-c-config-remove-resource-pack(config-c-config-remove-resource-pack),
|
||||||
config-c-config-reset-chat,
|
config-c-config-reset-chat,
|
||||||
@ -8660,6 +8732,7 @@ interface java-packets {
|
|||||||
c-remove-player-info(c-remove-player-info),
|
c-remove-player-info(c-remove-player-info),
|
||||||
c-player-rotation(c-player-rotation),
|
c-player-rotation(c-player-rotation),
|
||||||
c-player-spawn-position(c-player-spawn-position),
|
c-player-spawn-position(c-player-spawn-position),
|
||||||
|
c-post-effects(c-post-effects),
|
||||||
c-projectile-power(c-projectile-power),
|
c-projectile-power(c-projectile-power),
|
||||||
c-recipe-book-add(c-recipe-book-add),
|
c-recipe-book-add(c-recipe-book-add),
|
||||||
c-recipe-book-remove(c-recipe-book-remove),
|
c-recipe-book-remove(c-recipe-book-remove),
|
||||||
@ -8697,8 +8770,6 @@ interface java-packets {
|
|||||||
c-play-show-dialog(c-play-show-dialog),
|
c-play-show-dialog(c-play-show-dialog),
|
||||||
c-sound-effect(c-sound-effect),
|
c-sound-effect(c-sound-effect),
|
||||||
c-spawn-entity(c-spawn-entity),
|
c-spawn-entity(c-spawn-entity),
|
||||||
c-spawn-living-entity(c-spawn-living-entity),
|
|
||||||
c-spawn-painting(c-spawn-painting),
|
|
||||||
c-start-configuration,
|
c-start-configuration,
|
||||||
c-stop-sound(c-stop-sound),
|
c-stop-sound(c-stop-sound),
|
||||||
c-store-cookie(c-store-cookie),
|
c-store-cookie(c-store-cookie),
|
||||||
@ -8721,7 +8792,6 @@ interface java-packets {
|
|||||||
c-update-objectives(c-update-objectives),
|
c-update-objectives(c-update-objectives),
|
||||||
c-update-recipes(c-update-recipes),
|
c-update-recipes(c-update-recipes),
|
||||||
c-update-score(c-update-score),
|
c-update-score(c-update-score),
|
||||||
c-use-bed(c-use-bed),
|
|
||||||
c-waypoint(c-waypoint),
|
c-waypoint(c-waypoint),
|
||||||
c-world-event(c-world-event),
|
c-world-event(c-world-event),
|
||||||
status-c-ping-response(status-c-ping-response),
|
status-c-ping-response(status-c-ping-response),
|
||||||
@ -10283,6 +10353,7 @@ interface player {
|
|||||||
v-1-21-11,
|
v-1-21-11,
|
||||||
v-26-1,
|
v-26-1,
|
||||||
v-26-2,
|
v-26-2,
|
||||||
|
v-26-3,
|
||||||
unknown,
|
unknown,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -178,6 +178,11 @@ pub const LegacySetItemSlot = struct {
|
|||||||
slots: []const u8,
|
slots: []const u8,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
pub const HandSlot = enum(u8) {
|
||||||
|
mainhand,
|
||||||
|
offhand,
|
||||||
|
};
|
||||||
|
|
||||||
pub const StackRequestItem = struct {
|
pub const StackRequestItem = struct {
|
||||||
identifier: ?[]const u8,
|
identifier: ?[]const u8,
|
||||||
metadata_value: i32,
|
metadata_value: i32,
|
||||||
@ -665,7 +670,7 @@ pub const BuildPlatform = enum(u8) {
|
|||||||
dedicated,
|
dedicated,
|
||||||
tv_os,
|
tv_os,
|
||||||
sony,
|
sony,
|
||||||
nx,
|
nintendo,
|
||||||
xbox,
|
xbox,
|
||||||
windows_phone,
|
windows_phone,
|
||||||
linux,
|
linux,
|
||||||
@ -759,9 +764,19 @@ pub const CCorrectPlayerMovePrediction = struct {
|
|||||||
tick: i64,
|
tick: i64,
|
||||||
};
|
};
|
||||||
|
|
||||||
pub const ItemDescriptorCount = struct {
|
pub const RecipeItemDescriptorItem = struct {
|
||||||
item_identifier: []const u8,
|
identifier: []const u8,
|
||||||
metadata_value: i32,
|
metadata_value: i32,
|
||||||
|
};
|
||||||
|
|
||||||
|
pub const RecipeItemDescriptor = union(enum) {
|
||||||
|
empty,
|
||||||
|
item: RecipeItemDescriptorItem,
|
||||||
|
tag: []const u8,
|
||||||
|
};
|
||||||
|
|
||||||
|
pub const ItemDescriptorCount = struct {
|
||||||
|
descriptor: RecipeItemDescriptor,
|
||||||
count: i32,
|
count: i32,
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1416,7 +1431,7 @@ pub const UseItemTransactionData = struct {
|
|||||||
block_position: struct { i32, i32, i32 },
|
block_position: struct { i32, i32, i32 },
|
||||||
block_face: u8,
|
block_face: u8,
|
||||||
hot_bar_slot: i32,
|
hot_bar_slot: i32,
|
||||||
hand: u8,
|
hand: HandSlot,
|
||||||
item_in_hand: NetworkItemDescriptor,
|
item_in_hand: NetworkItemDescriptor,
|
||||||
player_position: struct { f64, f64, f64 },
|
player_position: struct { f64, f64, f64 },
|
||||||
click_position: struct { f64, f64, f64 },
|
click_position: struct { f64, f64, f64 },
|
||||||
|
|||||||
@ -9,6 +9,7 @@ pub const Biome = enum(u8) {
|
|||||||
cherry_grove,
|
cherry_grove,
|
||||||
cold_ocean,
|
cold_ocean,
|
||||||
crimson_forest,
|
crimson_forest,
|
||||||
|
dappled_forest,
|
||||||
dark_forest,
|
dark_forest,
|
||||||
deep_cold_ocean,
|
deep_cold_ocean,
|
||||||
deep_dark,
|
deep_dark,
|
||||||
|
|||||||
@ -41,12 +41,14 @@ pub const DataComponent = enum(u8) {
|
|||||||
blocks_attacks,
|
blocks_attacks,
|
||||||
piercing_weapon,
|
piercing_weapon,
|
||||||
kinetic_weapon,
|
kinetic_weapon,
|
||||||
swing_animation,
|
attack_animation,
|
||||||
|
interact_animation,
|
||||||
additional_trade_cost,
|
additional_trade_cost,
|
||||||
|
block_transformer,
|
||||||
|
villager_food,
|
||||||
stored_enchantments,
|
stored_enchantments,
|
||||||
dye,
|
dye,
|
||||||
dyed_color,
|
dyed_color,
|
||||||
map_color,
|
|
||||||
map_id,
|
map_id,
|
||||||
map_decorations,
|
map_decorations,
|
||||||
map_post_processing,
|
map_post_processing,
|
||||||
@ -83,6 +85,10 @@ pub const DataComponent = enum(u8) {
|
|||||||
lock,
|
lock,
|
||||||
container_loot,
|
container_loot,
|
||||||
break_sound,
|
break_sound,
|
||||||
|
compostable,
|
||||||
|
cooking_fuel,
|
||||||
|
brewing_fuel,
|
||||||
|
mob_visibility,
|
||||||
villager_variant,
|
villager_variant,
|
||||||
wolf_variant,
|
wolf_variant,
|
||||||
wolf_sound_variant,
|
wolf_sound_variant,
|
||||||
@ -112,4 +118,9 @@ pub const DataComponent = enum(u8) {
|
|||||||
cat_collar,
|
cat_collar,
|
||||||
sheep_color,
|
sheep_color,
|
||||||
shulker_color,
|
shulker_color,
|
||||||
|
provides_pottery_pattern,
|
||||||
|
sign_text_front,
|
||||||
|
sign_text_back,
|
||||||
|
waxed,
|
||||||
|
cushion_color,
|
||||||
};
|
};
|
||||||
|
|||||||
@ -3,6 +3,8 @@
|
|||||||
pub const EntityStatus = enum(u8) {
|
pub const EntityStatus = enum(u8) {
|
||||||
armadillo_peek,
|
armadillo_peek,
|
||||||
armorstand_wobble,
|
armorstand_wobble,
|
||||||
|
boat_launch,
|
||||||
|
boat_sink,
|
||||||
body_break,
|
body_break,
|
||||||
cancel_shake_wetness,
|
cancel_shake_wetness,
|
||||||
chest_break,
|
chest_break,
|
||||||
|
|||||||
@ -34,6 +34,7 @@ pub const EntityType = enum(u8) {
|
|||||||
cow,
|
cow,
|
||||||
creaking,
|
creaking,
|
||||||
creeper,
|
creeper,
|
||||||
|
cushion,
|
||||||
dark_oak_boat,
|
dark_oak_boat,
|
||||||
dark_oak_chest_boat,
|
dark_oak_chest_boat,
|
||||||
dolphin,
|
dolphin,
|
||||||
@ -109,6 +110,8 @@ pub const EntityType = enum(u8) {
|
|||||||
pillager,
|
pillager,
|
||||||
player,
|
player,
|
||||||
polar_bear,
|
polar_bear,
|
||||||
|
poplar_boat,
|
||||||
|
poplar_chest_boat,
|
||||||
pufferfish,
|
pufferfish,
|
||||||
rabbit,
|
rabbit,
|
||||||
ravager,
|
ravager,
|
||||||
|
|||||||
@ -186,6 +186,9 @@ pub const SCommandSuggestion = struct {
|
|||||||
|
|
||||||
pub const SConfirmTeleport = struct {
|
pub const SConfirmTeleport = struct {
|
||||||
teleport_id: i32,
|
teleport_id: i32,
|
||||||
|
position: struct { f64, f64, f64 },
|
||||||
|
yaw: f32,
|
||||||
|
pitch: f32,
|
||||||
};
|
};
|
||||||
|
|
||||||
pub const SContainerButtonClick = struct {
|
pub const SContainerButtonClick = struct {
|
||||||
@ -317,6 +320,7 @@ pub const Status = enum(u8) {
|
|||||||
release_item_in_use,
|
release_item_in_use,
|
||||||
swap_item,
|
swap_item,
|
||||||
spear_jab,
|
spear_jab,
|
||||||
|
change_destroy_direction,
|
||||||
};
|
};
|
||||||
|
|
||||||
pub const Action = enum(u8) {
|
pub const Action = enum(u8) {
|
||||||
@ -620,6 +624,10 @@ pub const ConfigCPluginMessage = struct {
|
|||||||
data: []const u8,
|
data: []const u8,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
pub const ConfigCConfigPostEffects = struct {
|
||||||
|
effects: []const []const u8,
|
||||||
|
};
|
||||||
|
|
||||||
pub const ConfigCRegistryData = struct {
|
pub const ConfigCRegistryData = struct {
|
||||||
registry_id: []const u8,
|
registry_id: []const u8,
|
||||||
entries: []const []const u8,
|
entries: []const []const u8,
|
||||||
@ -767,6 +775,19 @@ pub const CChunkBatchEnd = struct {
|
|||||||
batch_size: i32,
|
batch_size: i32,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
pub const ChunkHeightmaps = struct {
|
||||||
|
world_surface: ?[]const i64,
|
||||||
|
motion_blocking: ?[]const i64,
|
||||||
|
motion_blocking_no_leaves: ?[]const i64,
|
||||||
|
};
|
||||||
|
|
||||||
|
pub const ChunkBlockEntity = struct {
|
||||||
|
packed_xz: u8,
|
||||||
|
y: i32,
|
||||||
|
type_id: i32,
|
||||||
|
data: []const u8,
|
||||||
|
};
|
||||||
|
|
||||||
pub const ChunkBiomeEntry = struct {
|
pub const ChunkBiomeEntry = struct {
|
||||||
chunk_x: i32,
|
chunk_x: i32,
|
||||||
chunk_z: i32,
|
chunk_z: i32,
|
||||||
@ -1039,6 +1060,11 @@ pub const CEntityAnimation = struct {
|
|||||||
animation: u8,
|
animation: u8,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
pub const CSwingArm = struct {
|
||||||
|
entity_id: i32,
|
||||||
|
off_hand: bool,
|
||||||
|
};
|
||||||
|
|
||||||
pub const Animation = enum(u8) {
|
pub const Animation = enum(u8) {
|
||||||
swing_main_arm,
|
swing_main_arm,
|
||||||
leave_bed,
|
leave_bed,
|
||||||
@ -1170,6 +1196,15 @@ pub const LightData = struct {
|
|||||||
block_light_arrays: []const []const u8,
|
block_light_arrays: []const []const u8,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
pub const CChunkData = struct {
|
||||||
|
chunk_x: i32,
|
||||||
|
chunk_z: i32,
|
||||||
|
heightmaps: ChunkHeightmaps,
|
||||||
|
data: []const u8,
|
||||||
|
block_entities: []const ChunkBlockEntity,
|
||||||
|
light_data: LightData,
|
||||||
|
};
|
||||||
|
|
||||||
pub const CLightUpdate = struct {
|
pub const CLightUpdate = struct {
|
||||||
chunk_x: i32,
|
chunk_x: i32,
|
||||||
chunk_z: i32,
|
chunk_z: i32,
|
||||||
@ -1395,6 +1430,10 @@ pub const CPlayerSpawnPosition = struct {
|
|||||||
pitch: f32,
|
pitch: f32,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
pub const CPostEffects = struct {
|
||||||
|
effects: []const []const u8,
|
||||||
|
};
|
||||||
|
|
||||||
pub const CProjectilePower = struct {
|
pub const CProjectilePower = struct {
|
||||||
entity_id: i32,
|
entity_id: i32,
|
||||||
x_power: f64,
|
x_power: f64,
|
||||||
@ -1603,7 +1642,7 @@ pub const CSoundEffect = struct {
|
|||||||
position: struct { f64, f64, f64 },
|
position: struct { f64, f64, f64 },
|
||||||
volume: f32,
|
volume: f32,
|
||||||
pitch: f32,
|
pitch: f32,
|
||||||
seed: f64,
|
seed: i64,
|
||||||
};
|
};
|
||||||
|
|
||||||
pub const CSpawnEntity = struct {
|
pub const CSpawnEntity = struct {
|
||||||
@ -1618,27 +1657,6 @@ pub const CSpawnEntity = struct {
|
|||||||
data: i32,
|
data: i32,
|
||||||
};
|
};
|
||||||
|
|
||||||
pub const CSpawnLivingEntity = struct {
|
|
||||||
entity_id: i32,
|
|
||||||
entity_uuid: Uuid,
|
|
||||||
r_type: i32,
|
|
||||||
position: struct { f64, f64, f64 },
|
|
||||||
yaw: u8,
|
|
||||||
pitch: u8,
|
|
||||||
head_yaw: u8,
|
|
||||||
velocity: []const u8,
|
|
||||||
metadata: ?[]const u8,
|
|
||||||
};
|
|
||||||
|
|
||||||
pub const CSpawnPainting = struct {
|
|
||||||
entity_id: i32,
|
|
||||||
uuid: Uuid,
|
|
||||||
title: []const u8,
|
|
||||||
variant: i32,
|
|
||||||
location: struct { i32, i32, i32 },
|
|
||||||
direction: u8,
|
|
||||||
};
|
|
||||||
|
|
||||||
pub const CStopSound = struct {
|
pub const CStopSound = struct {
|
||||||
sound_id: ?[]const u8,
|
sound_id: ?[]const u8,
|
||||||
category: ?[]const u8,
|
category: ?[]const u8,
|
||||||
@ -1832,11 +1850,6 @@ pub const CUpdateTagsPlay = struct {
|
|||||||
tags: []const []const u8,
|
tags: []const []const u8,
|
||||||
};
|
};
|
||||||
|
|
||||||
pub const CUseBed = struct {
|
|
||||||
entity_id: i32,
|
|
||||||
location: struct { i32, i32, i32 },
|
|
||||||
};
|
|
||||||
|
|
||||||
pub const WaypointOperation = enum(u8) {
|
pub const WaypointOperation = enum(u8) {
|
||||||
track,
|
track,
|
||||||
untrack,
|
untrack,
|
||||||
@ -1964,7 +1977,6 @@ pub const ServerboundPacket = union(enum) {
|
|||||||
s_set_structure_block: SSetStructureBlock,
|
s_set_structure_block: SSetStructureBlock,
|
||||||
s_set_test_block: SSetTestBlock,
|
s_set_test_block: SSetTestBlock,
|
||||||
s_spectate_entity: SSpectateEntity,
|
s_spectate_entity: SSpectateEntity,
|
||||||
s_swing_arm: SSwingArm,
|
|
||||||
s_teleport_to_entity: STeleportToEntity,
|
s_teleport_to_entity: STeleportToEntity,
|
||||||
s_test_instance_block_action: STestInstanceBlockAction,
|
s_test_instance_block_action: STestInstanceBlockAction,
|
||||||
s_update_sign: SUpdateSign,
|
s_update_sign: SUpdateSign,
|
||||||
@ -1987,6 +1999,7 @@ pub const ClientboundPacket = union(enum) {
|
|||||||
config_c_known_packs: ConfigCKnownPacks,
|
config_c_known_packs: ConfigCKnownPacks,
|
||||||
config_c_config_ping: ConfigCConfigPing,
|
config_c_config_ping: ConfigCConfigPing,
|
||||||
config_c_plugin_message: ConfigCPluginMessage,
|
config_c_plugin_message: ConfigCPluginMessage,
|
||||||
|
config_c_config_post_effects: ConfigCConfigPostEffects,
|
||||||
config_c_registry_data: ConfigCRegistryData,
|
config_c_registry_data: ConfigCRegistryData,
|
||||||
config_c_config_remove_resource_pack: ConfigCConfigRemoveResourcePack,
|
config_c_config_remove_resource_pack: ConfigCConfigRemoveResourcePack,
|
||||||
config_c_config_reset_chat,
|
config_c_config_reset_chat,
|
||||||
@ -2075,6 +2088,7 @@ pub const ClientboundPacket = union(enum) {
|
|||||||
c_remove_player_info: CRemovePlayerInfo,
|
c_remove_player_info: CRemovePlayerInfo,
|
||||||
c_player_rotation: CPlayerRotation,
|
c_player_rotation: CPlayerRotation,
|
||||||
c_player_spawn_position: CPlayerSpawnPosition,
|
c_player_spawn_position: CPlayerSpawnPosition,
|
||||||
|
c_post_effects: CPostEffects,
|
||||||
c_projectile_power: CProjectilePower,
|
c_projectile_power: CProjectilePower,
|
||||||
c_recipe_book_add: CRecipeBookAdd,
|
c_recipe_book_add: CRecipeBookAdd,
|
||||||
c_recipe_book_remove: CRecipeBookRemove,
|
c_recipe_book_remove: CRecipeBookRemove,
|
||||||
@ -2112,8 +2126,6 @@ pub const ClientboundPacket = union(enum) {
|
|||||||
c_play_show_dialog: CPlayShowDialog,
|
c_play_show_dialog: CPlayShowDialog,
|
||||||
c_sound_effect: CSoundEffect,
|
c_sound_effect: CSoundEffect,
|
||||||
c_spawn_entity: CSpawnEntity,
|
c_spawn_entity: CSpawnEntity,
|
||||||
c_spawn_living_entity: CSpawnLivingEntity,
|
|
||||||
c_spawn_painting: CSpawnPainting,
|
|
||||||
c_start_configuration,
|
c_start_configuration,
|
||||||
c_stop_sound: CStopSound,
|
c_stop_sound: CStopSound,
|
||||||
c_store_cookie: CStoreCookie,
|
c_store_cookie: CStoreCookie,
|
||||||
@ -2136,7 +2148,6 @@ pub const ClientboundPacket = union(enum) {
|
|||||||
c_update_objectives: CUpdateObjectives,
|
c_update_objectives: CUpdateObjectives,
|
||||||
c_update_recipes: CUpdateRecipes,
|
c_update_recipes: CUpdateRecipes,
|
||||||
c_update_score: CUpdateScore,
|
c_update_score: CUpdateScore,
|
||||||
c_use_bed: CUseBed,
|
|
||||||
c_waypoint: CWaypoint,
|
c_waypoint: CWaypoint,
|
||||||
c_world_event: CWorldEvent,
|
c_world_event: CWorldEvent,
|
||||||
status_c_ping_response: StatusCPingResponse,
|
status_c_ping_response: StatusCPingResponse,
|
||||||
|
|||||||
@ -44,6 +44,9 @@ pub const Particle = enum(u8) {
|
|||||||
infested,
|
infested,
|
||||||
cherry_leaves,
|
cherry_leaves,
|
||||||
pale_oak_leaves,
|
pale_oak_leaves,
|
||||||
|
red_poplar_leaves,
|
||||||
|
orange_poplar_leaves,
|
||||||
|
yellow_poplar_leaves,
|
||||||
tinted_leaves,
|
tinted_leaves,
|
||||||
sculk_soul,
|
sculk_soul,
|
||||||
sculk_charge,
|
sculk_charge,
|
||||||
|
|||||||
@ -505,6 +505,7 @@ pub const JavaMinecraftVersion = enum(u8) {
|
|||||||
v_1_21_11,
|
v_1_21_11,
|
||||||
v_26_1,
|
v_26_1,
|
||||||
v_26_2,
|
v_26_2,
|
||||||
|
v_26_3,
|
||||||
unknown,
|
unknown,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@ -507,6 +507,10 @@ pub const Sound = enum(u16) {
|
|||||||
item_crossbow_quick_charge_2,
|
item_crossbow_quick_charge_2,
|
||||||
item_crossbow_quick_charge_3,
|
item_crossbow_quick_charge_3,
|
||||||
item_crossbow_shoot,
|
item_crossbow_shoot,
|
||||||
|
entity_cushion_break,
|
||||||
|
entity_cushion_place,
|
||||||
|
entity_cushion_sit,
|
||||||
|
entity_cushion_get_up,
|
||||||
block_deadbush_idle,
|
block_deadbush_idle,
|
||||||
block_decorated_pot_break,
|
block_decorated_pot_break,
|
||||||
block_decorated_pot_fall,
|
block_decorated_pot_fall,
|
||||||
@ -1983,4 +1987,23 @@ pub const Sound = enum(u16) {
|
|||||||
entity_small_sulfur_cube_jump,
|
entity_small_sulfur_cube_jump,
|
||||||
entity_small_sulfur_cube_squish,
|
entity_small_sulfur_cube_squish,
|
||||||
entity_small_sulfur_cube_eat,
|
entity_small_sulfur_cube_eat,
|
||||||
|
block_shelf_mushroom_break,
|
||||||
|
block_shelf_mushroom_fall,
|
||||||
|
block_shelf_mushroom_place,
|
||||||
|
block_shelf_mushroom_step,
|
||||||
|
block_shelf_mushroom_bounce,
|
||||||
|
block_poplar_leaves_break,
|
||||||
|
block_poplar_leaves_hit,
|
||||||
|
block_poplar_leaves_fall,
|
||||||
|
block_poplar_leaves_place,
|
||||||
|
block_poplar_leaves_step,
|
||||||
|
block_poplar_leaves_ambient,
|
||||||
|
block_straw_bed_break,
|
||||||
|
block_straw_bed_break_leave,
|
||||||
|
block_straw_bed_step,
|
||||||
|
block_straw_bed_place,
|
||||||
|
block_straw_bed_hit,
|
||||||
|
block_straw_bed_fall,
|
||||||
|
block_red_shrub_break,
|
||||||
|
block_red_shrub_place,
|
||||||
};
|
};
|
||||||
|
|||||||
@ -74,6 +74,7 @@ pub const CustomStatistic = enum(u8) {
|
|||||||
interact_with_crafting_table,
|
interact_with_crafting_table,
|
||||||
open_chest,
|
open_chest,
|
||||||
sleep_in_bed,
|
sleep_in_bed,
|
||||||
|
sleep_in_straw_bed,
|
||||||
open_shulker_box,
|
open_shulker_box,
|
||||||
open_barrel,
|
open_barrel,
|
||||||
interact_with_blast_furnace,
|
interact_with_blast_furnace,
|
||||||
|
|||||||
2
wit
2
wit
@ -1 +1 @@
|
|||||||
Subproject commit 2366bb9edb3d9a093e3f579c3dac541eba70e6d7
|
Subproject commit 4d7a501943bb99f0f02a339128833f58ed37d0cc
|
||||||
Loading…
Reference in New Issue
Block a user