Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change title for existing inventory #204

Open
Matix-Media opened this issue Jan 12, 2022 · 1 comment
Open

Change title for existing inventory #204

Matix-Media opened this issue Jan 12, 2022 · 1 comment

Comments

@Matix-Media
Copy link

Hello, I want to change the title of an existing inventory. Is that possible?

@Leguan16
Copy link

As far as I know its not possible to change the name of an existing Inventory. Quickfix would be creating a new inventory and set the provider to your already existing class.

        SmartInventory inventory = SmartInventory.builder()
                .id("playerInv")
                .title(playerName)
                .provider(new InvSeeInventory(toSee))
                .size(4,9).build();

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

No branches or pull requests

2 participants