DREAMFIRE Docs ← Back to site
Loading...
Searching...
No Matches
InventoryProvider.java
Go to the documentation of this file.
1package com.dreamfirestudios.dreamcore.DreamSmartInvs.content;
2
3import org.bukkit.entity.Player;
4import org.bukkit.inventory.Inventory;
5
6import java.util.concurrent.CompletableFuture;
7
8public interface InventoryProvider {
9
10 CompletableFuture<Void> init(Player player, InventoryContents contents);
11
12 default void update(Player player, InventoryContents contents) {
13
14 }
15
16 default void closeinventory(Player player, InventoryContents contents, Inventory inventory) {
17
18 }
19
20}
default void update(Player player, InventoryContents contents)
CompletableFuture< Void > init(Player player, InventoryContents contents)
default void closeinventory(Player player, InventoryContents contents, Inventory inventory)