public interface InventoryProvider extends Target<InventoryContents>
| Modifier and Type | Field and Description |
|---|---|
static InventoryProvider |
EMPTY
an empty inventory provider.
|
| Modifier and Type | Method and Description |
|---|---|
default void |
init(@NotNull InventoryContents contents)
runs when the page has just opened.
|
default void |
tick(@NotNull InventoryContents contents)
runs every tick.
|
default void |
update(@NotNull InventoryContents contents)
runs when
InventoryContents.notifyUpdate() runs. |
static final InventoryProvider EMPTY
default void init(@NotNull
@NotNull InventoryContents contents)
contents - the contents to initiate.default void tick(@NotNull
@NotNull InventoryContents contents)
contents - the contents to tick.default void update(@NotNull
@NotNull InventoryContents contents)
InventoryContents.notifyUpdate() runs.
came from Target's method.
update in interface Target<InventoryContents>contents - the contents to update.Copyright © 2021. All rights reserved.