api
Getting Started
Adding VaultPack as a Dependency
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository><dependency>
<groupId>com.github.yourusername</groupId>
<artifactId>VaultPack</artifactId>
<version>2.0.0</version>
<scope>provided</scope>
</dependency>repositories {
maven { url 'https://jitpack.io' }
}
dependencies {
compileOnly 'com.github.yourusername:VaultPack:2.0.0'
}plugin.yml
API Instance
Getting the API
Backpack Management
Check if Player has Backpack
Open Backpack
Create Backpack
Get Backpack Contents
Get Backpack Information
Slot Management
Check if Slot is Unlocked
Unlock Slot Programmatically
Get Unlocked Slot Count
Player Statistics
Get Active Backpack Count
Get Total Storage Capacity
Ender Chest Management
Check if Ender Page is Unlocked
Unlock Ender Page
Open Ender Page
Get Ender Page Contents
Get Ender Storage Statistics
Unified Storage
Open Unified Storage GUI
Configuration
Check Blacklisted Items
Get Configuration Values
Events
BackpackOpenEvent
BackpackCloseEvent
BackpackCreateEvent
SlotUnlockEvent
Complete Integration Examples
Example 1: Reward System
Example 2: Storage Checker
Example 3: Combat Restriction
Example 4: Statistics Display
Best Practices
API Methods Reference
Backpack Methods
Method
Return Type
Description
Slot Methods
Method
Return Type
Description
Statistics Methods
Method
Return Type
Description
Ender Chest Methods
Method
Return Type
Description