feat: add unknown option to packets
This commit is contained in:
parent
6e8b554b38
commit
40ae442280
@ -481,6 +481,7 @@ interface bedrock-packets {
|
|||||||
s-resource-pack-response(s-resource-pack-response),
|
s-resource-pack-response(s-resource-pack-response),
|
||||||
s-set-local-player-as-initialized(s-set-local-player-as-initialized),
|
s-set-local-player-as-initialized(s-set-local-player-as-initialized),
|
||||||
s-text(s-text),
|
s-text(s-text),
|
||||||
|
unknown,
|
||||||
}
|
}
|
||||||
variant clientbound-packet {
|
variant clientbound-packet {
|
||||||
c-add-actor(c-add-actor),
|
c-add-actor(c-add-actor),
|
||||||
@ -528,5 +529,6 @@ interface bedrock-packets {
|
|||||||
c-update-abilities(c-update-abilities),
|
c-update-abilities(c-update-abilities),
|
||||||
c-update-attributes(c-update-attributes),
|
c-update-attributes(c-update-attributes),
|
||||||
c-update-block(c-update-block),
|
c-update-block(c-update-block),
|
||||||
|
unknown,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -11,11 +11,13 @@ interface event {
|
|||||||
variant serverbound-packet {
|
variant serverbound-packet {
|
||||||
java(java-serverbound-packet),
|
java(java-serverbound-packet),
|
||||||
bedrock(bedrock-serverbound-packet),
|
bedrock(bedrock-serverbound-packet),
|
||||||
|
unknown,
|
||||||
}
|
}
|
||||||
|
|
||||||
variant clientbound-packet {
|
variant clientbound-packet {
|
||||||
java(java-clientbound-packet),
|
java(java-clientbound-packet),
|
||||||
bedrock(bedrock-clientbound-packet),
|
bedrock(bedrock-clientbound-packet),
|
||||||
|
unknown,
|
||||||
}
|
}
|
||||||
|
|
||||||
enum event-priority {
|
enum event-priority {
|
||||||
@ -306,12 +308,16 @@ interface event {
|
|||||||
record packet-received-event-data {
|
record packet-received-event-data {
|
||||||
player: player,
|
player: player,
|
||||||
packet: serverbound-packet,
|
packet: serverbound-packet,
|
||||||
|
packet-id: s32,
|
||||||
|
raw-payload: list<u8>,
|
||||||
cancelled: bool
|
cancelled: bool
|
||||||
}
|
}
|
||||||
|
|
||||||
record packet-sent-event-data {
|
record packet-sent-event-data {
|
||||||
player: player,
|
player: player,
|
||||||
packet: clientbound-packet,
|
packet: clientbound-packet,
|
||||||
|
packet-id: s32,
|
||||||
|
raw-payload: list<u8>,
|
||||||
cancelled: bool
|
cancelled: bool
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -758,6 +758,7 @@ interface java-packets {
|
|||||||
s-update-sign(s-update-sign),
|
s-update-sign(s-update-sign),
|
||||||
s-use-item(s-use-item),
|
s-use-item(s-use-item),
|
||||||
s-use-item-on(s-use-item-on),
|
s-use-item-on(s-use-item-on),
|
||||||
|
unknown,
|
||||||
}
|
}
|
||||||
variant clientbound-packet {
|
variant clientbound-packet {
|
||||||
c-acknowledge-block-change(c-acknowledge-block-change),
|
c-acknowledge-block-change(c-acknowledge-block-change),
|
||||||
@ -860,5 +861,6 @@ interface java-packets {
|
|||||||
c-update-objectives(c-update-objectives),
|
c-update-objectives(c-update-objectives),
|
||||||
c-update-score(c-update-score),
|
c-update-score(c-update-score),
|
||||||
c-world-event(c-world-event),
|
c-world-event(c-world-event),
|
||||||
|
unknown,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user