mirror of
https://github.com/mat-1/azalea.git
synced 2025-08-02 06:16:04 +00:00
ClientboundContainerClosePacket
This commit is contained in:
parent
7c71bdf79a
commit
7d140e5f0c
3 changed files with 11 additions and 8 deletions
|
@ -444,10 +444,7 @@ async fn check_ownership(
|
||||||
) -> Result<bool, CheckOwnershipError> {
|
) -> Result<bool, CheckOwnershipError> {
|
||||||
let res = client
|
let res = client
|
||||||
.get("https://api.minecraftservices.com/entitlements/mcstore")
|
.get("https://api.minecraftservices.com/entitlements/mcstore")
|
||||||
.header(
|
.header("Authorization", format!("Bearer {minecraft_access_token}"))
|
||||||
"Authorization",
|
|
||||||
format!("Bearer {minecraft_access_token}"),
|
|
||||||
)
|
|
||||||
.send()
|
.send()
|
||||||
.await?
|
.await?
|
||||||
.json::<GameOwnershipResponse>()
|
.json::<GameOwnershipResponse>()
|
||||||
|
@ -472,10 +469,7 @@ async fn get_profile(
|
||||||
) -> Result<ProfileResponse, GetProfileError> {
|
) -> Result<ProfileResponse, GetProfileError> {
|
||||||
let res = client
|
let res = client
|
||||||
.get("https://api.minecraftservices.com/minecraft/profile")
|
.get("https://api.minecraftservices.com/minecraft/profile")
|
||||||
.header(
|
.header("Authorization", format!("Bearer {minecraft_access_token}"))
|
||||||
"Authorization",
|
|
||||||
format!("Bearer {minecraft_access_token}"),
|
|
||||||
)
|
|
||||||
.send()
|
.send()
|
||||||
.await?
|
.await?
|
||||||
.json::<ProfileResponse>()
|
.json::<ProfileResponse>()
|
||||||
|
|
|
@ -0,0 +1,7 @@
|
||||||
|
use azalea_buf::McBuf;
|
||||||
|
use azalea_protocol_macros::ClientboundGamePacket;
|
||||||
|
|
||||||
|
#[derive(Clone, Debug, McBuf, ClientboundGamePacket)]
|
||||||
|
pub struct ClientboundContainerClosePacket {
|
||||||
|
pub container_id: u8,
|
||||||
|
}
|
|
@ -13,6 +13,7 @@ pub mod clientbound_change_difficulty_packet;
|
||||||
pub mod clientbound_chat_preview_packet;
|
pub mod clientbound_chat_preview_packet;
|
||||||
pub mod clientbound_command_suggestions_packet;
|
pub mod clientbound_command_suggestions_packet;
|
||||||
pub mod clientbound_commands_packet;
|
pub mod clientbound_commands_packet;
|
||||||
|
pub mod clientbound_container_close_packet;
|
||||||
pub mod clientbound_container_set_content_packet;
|
pub mod clientbound_container_set_content_packet;
|
||||||
pub mod clientbound_container_set_data_packet;
|
pub mod clientbound_container_set_data_packet;
|
||||||
pub mod clientbound_container_set_slot_packet;
|
pub mod clientbound_container_set_slot_packet;
|
||||||
|
@ -229,6 +230,7 @@ declare_state_packets!(
|
||||||
0x0c: clientbound_chat_preview_packet::ClientboundChatPreviewPacket,
|
0x0c: clientbound_chat_preview_packet::ClientboundChatPreviewPacket,
|
||||||
0x0e: clientbound_command_suggestions_packet::ClientboundCommandSuggestionsPacket,
|
0x0e: clientbound_command_suggestions_packet::ClientboundCommandSuggestionsPacket,
|
||||||
0x0f: clientbound_commands_packet::ClientboundCommandsPacket,
|
0x0f: clientbound_commands_packet::ClientboundCommandsPacket,
|
||||||
|
0x10: clientbound_container_close_packet::ClientboundContainerClosePacket,
|
||||||
0x11: clientbound_container_set_content_packet::ClientboundContainerSetContentPacket,
|
0x11: clientbound_container_set_content_packet::ClientboundContainerSetContentPacket,
|
||||||
0x12: clientbound_container_set_data_packet::ClientboundContainerSetDataPacket,
|
0x12: clientbound_container_set_data_packet::ClientboundContainerSetDataPacket,
|
||||||
0x13: clientbound_container_set_slot_packet::ClientboundContainerSetSlotPacket,
|
0x13: clientbound_container_set_slot_packet::ClientboundContainerSetSlotPacket,
|
||||||
|
|
Loading…
Add table
Reference in a new issue