-
Notifications
You must be signed in to change notification settings - Fork 32
Configuration Guide
Natan Vieira edited this page Nov 30, 2023
·
44 revisions
...This document is still being written...
- Container Properties
- Affects Player Interaction
- Structure Modification
- Internal Behavior
- Extension to External Features
Changes the initial title of the inventory.
@Override
public void onInit(ViewConfigBuilder config) {
config.title("Write something");
}Changes the initial title of the inventory.
@Override
public void onInit(ViewConfigBuilder config) {
config.title(Component.text("Write something").color(NamedTextColor.BLUE));
}Sets the size of the inventory.
@Override
public void onInit(ViewConfigBuilder config) {
config.size(4); // rows
config.size(45); // full size
}Sets the size of the inventory to the maximum possible,
based on the inventory type.
@Override
public void onInit(ViewConfigBuilder config) {
config.maxSize();
}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.