Skip to content

Configuration Guide

Natan Vieira edited this page Nov 30, 2023 · 44 revisions

...This document is still being written...

Container Properties

title(String)

Changes the initial title of the inventory.

Preview
@Override
public void onInit(ViewConfigBuilder config) {
    config.title("Write something");
}

title(net.kyori.adventure.text.Component)

Changes the initial title of the inventory.

Preview
@Override
public void onInit(ViewConfigBuilder config) {
    config.title(Component.text("Write something").color(NamedTextColor.BLUE));
}

size(int)

Sets the size of the inventory.

Preview
@Override
public void onInit(ViewConfigBuilder config) {
    config.size(4); // rows
    config.size(45); // full size
}

maxSize()

Sets the size of the inventory to the maximum possible,
based on the inventory type.

Preview
@Override
public void onInit(ViewConfigBuilder config) {
    config.maxSize();
}

Affects Player Interaction

Structure Modification

Internal Behavior

Extension to External Features

Welcome to the Inventory Framework documentation.

▶️ Introduction

🧩 Core Topics

💡 Built-In Features

🧰 Extra Features

🤓 Advanced Usage

⚙️ Internal Mechanisms

You can find practical examples in the examples directory.

Clone this wiki locally