@ParametersAreNonnullByDefault public interface ContainerContentListener
| Modifier and Type | Method and Description |
|---|---|
void |
onContainerContentChange(ItemStack[] contents,
Container container)
Called when the entire contents of the inventory is changed within the observed inventory.
|
void |
onSlotChange(int slot,
ItemStack oldItem,
ItemStack newItem,
Container container,
PlayerSession session)
Called when a single slot is changed within the observed inventory.
|
void onSlotChange(int slot,
@Nullable
ItemStack oldItem,
@Nullable
ItemStack newItem,
Container container,
@Nullable
PlayerSession session)
slot - slot in questionoldItem - old item in slotnewItem - new item in slotcontainer - inventory being observedsession - session which caused the changeCopyright © 2017–2019 NukkitX. All rights reserved.