Skip to content

Add packets CCloseContainer, CSetContainerProperty and SCloseContainer - #59

Merged
Snowiiii merged 11 commits into
Pumpkin-MC:masterfrom
Bryntet:master
Aug 24, 2024
Merged

Snowiiii merged 11 commits into
Pumpkin-MC:masterfrom
Bryntet:master

Conversation

@Bryntet

@Bryntet Bryntet commented Aug 23, 2024

Copy link
Copy Markdown
Contributor

I have added the packets CCloseContainer and CSetContainerProperty and made abstractions for ContainerProperty.

@Bryntet

Bryntet commented Aug 23, 2024

Copy link
Copy Markdown
Contributor Author

I think the abstraction I made is okay, but I'd love to get feedback on it

@Bryntet Bryntet changed the title Add packets CCloseContainer and CSetContainerProperty Add packets CCloseContainer, CSetContainerProperty and SCloseContainer Aug 23, 2024
Comment thread pumpkin-inventory/src/lib.rs Resolved
@Bryntet

Bryntet commented Aug 24, 2024

Copy link
Copy Markdown
Contributor Author

ah, trying to solve the merge conflicts broke things

))
}

/// The official Minecraft client is weird, and will always just close *any* window that is opened when this gets sent

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why that is weird ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I should probably change the wording from weird, but it's mainly just a note so that people won't try and depend on behaviour that only a specific window will be closed, when which window_id you send doesn't actually matter to the client

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What I think I meant to comment on as weird is that the packet still requires an ID, but it never gets used for anything.

@Snowiiii
Snowiiii merged commit 92a3f6c into Pumpkin-MC:master Aug 24, 2024
composalagent Bot pushed a commit to vex-demo-1/Pumpkin that referenced this pull request Sep 26, 2026
Add packets CCloseContainer, CSetContainerProperty and SCloseContainer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants