Skip to content

Expand open container api on HumanEntity to support custom titles#9658

Closed
Sytm wants to merge 1 commit into
PaperMC:masterfrom
Sytm:open-inventory-with-title
Closed

Expand open container api on HumanEntity to support custom titles#9658
Sytm wants to merge 1 commit into
PaperMC:masterfrom
Sytm:open-inventory-with-title

Conversation

@Sytm
Copy link
Copy Markdown
Contributor

@Sytm Sytm commented Aug 27, 2023

The methods now take an optional component that overrides the title of the container.

I tested these changes with every method and every container type accepts the new overridden title just fine with the villager / merchant being the exception because the level of the villager is appended to the name

@Sytm Sytm marked this pull request as ready for review August 27, 2023 14:50
@Sytm Sytm requested a review from a team as a code owner August 27, 2023 14:50
Comment thread patches/api/0213-Add-additional-open-container-api-to-HumanEntity.patch Outdated
Comment thread patches/api/0213-Add-additional-open-container-api-to-HumanEntity.patch Outdated
Comment thread patches/server/0464-Add-additional-open-container-api-to-HumanEntity.patch Outdated
@Sytm Sytm requested a review from Machine-Maker August 29, 2023 15:31
Copy link
Copy Markdown
Member

@Machine-Maker Machine-Maker left a comment

Choose a reason for hiding this comment

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

We don't have to stick with upstream's ridiculousness in adding redundant public keywords to interface methods. For new methods, just don't include that.

Comment thread patches/server/0465-Add-additional-open-container-api-to-HumanEntity.patch Outdated
Comment thread patches/server/0465-Add-additional-open-container-api-to-HumanEntity.patch Outdated
@Sytm Sytm changed the title Expand open container api on HumanEntity Expand open container api on HumanEntity to support custom titles Sep 29, 2023
@Sytm Sytm requested a review from Machine-Maker September 29, 2023 12:29
@Sytm
Copy link
Copy Markdown
Contributor Author

Sytm commented Nov 2, 2023

Due to the maybe™ upcoming enum eradication I went ahead and removed the internal usage of the Material enum and use the blocks directly

The methods now take an optional adventure component that overrides the title of the container
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Closed

Development

Successfully merging this pull request may close these issues.

3 participants