[SOLVED] CustomInventory builder not implemented?

Hello,

In my code I have this :

Inventory newInv = CustomInventory.builder().build();

and I get this error:

java.lang.IllegalArgumentException: Could not find a Supplier for the provided class: org.spongepowered.api.item.inventory.custom.CustomInventory.Builder

Does it mean the it is not yet implemented ?

Correct. Not all of the Inventory API is implemented.

How you “SOLVED” the problem with custom inventory @catageek ?

I marked it SOLVED to say there is an answer to my question. I have still the issue, but I know why.

I really hope this gets implemented soon!

1 Like

I dont know how to search for the codes on API docs for implemented and not implemented methods.

This still to be implemented? On API 5.0.0is not implemented?
Thanks.

“Implemented” has nothing to do with the API, just SpongeForge and SpongeVanilla. You won’t find this information in the javadocs.

The API will change before custom inventories are implemented, here’s the link to the PR:

And the implementation:

OK, then i cant use “CustomInventory.Build()…” ultil the API changes right?
I still having this: Could not find a Supplier for the provided builder class: org.spongepowered.api.item.inventory.custom.CustomInventory.Builder

Correct. The API change will be bundled with the implementation.

1 Like