-
Notifications
You must be signed in to change notification settings - Fork 30
Creating a Custom Component
Natan Vieira edited this page Dec 24, 2023
·
8 revisions
TBD
.updateOnStateChange(state)There's a helper function in Components API called watchingStateUpdate that makes your component automatically update on every state value change.
private final MutableIntState someState = watchingStateUpdate(mutableState(1));Welcome to the Inventory Framework documentation.
- Pagination — Display large collections of items across multiple pages.
- Layouts (a.k.a. Masks or Patterns) — Define visual patterns for item placement.
- Scheduled Updates
- Anvil Input — Capture text input from players using an anvil GUI.
- Dynamic Title Update — Update the inventory’s title in real time.
You can find practical examples in the examples directory.