Skip to content

[API] InventoryView missing setter for Components #10329

@ericlmao

Description

@ericlmao

Is your feature request related to a problem?

In InventoryView, there's no Component setter for the inventory title, and it still uses the (I assume) legacy method of setTitle(String) rather than title(Component).

Describe the solution you'd like.

Preferably something like this!

for (HumanEntity viewer : inventory.getViewers()) {
    InventoryView view = viewer.getOpenInventory();

    TextComponent title = Component.text("My Inventory Title");
    view.title(title);
}

Describe alternatives you've considered.

There isn't exactly any alternatives to my knowledge unless I'm missing something

Other

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    resolution: duplicateIssue or Request is a copy of an existing ticket.type: featureRequest for a new Feature.
    No fields configured for Feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions