public interface ContainerProvider
Modifier and Type | Method and Description |
---|---|
boolean |
isContainer(org.bukkit.block.BlockState blockState)
Checks whether or not a block is a container.
|
void |
removeContainer(org.bukkit.block.BlockState blockState,
org.bukkit.inventory.Inventory inventory,
SellInfo sellInfo)
Performs a cleaning of items after the sell task completes.
|
SellInfo |
sellContainer(org.bukkit.block.BlockState blockState,
org.bukkit.inventory.Inventory inventory,
org.bukkit.entity.Player player)
Performs a sell task on the container.
|
boolean isContainer(org.bukkit.block.BlockState blockState)
blockState
- The block to check.SellInfo sellContainer(org.bukkit.block.BlockState blockState, org.bukkit.inventory.Inventory inventory, org.bukkit.entity.Player player)
blockState
- The container to sell.inventory
- The inventory of the block state, nullable.player
- The player who sold the container.void removeContainer(org.bukkit.block.BlockState blockState, org.bukkit.inventory.Inventory inventory, SellInfo sellInfo)
blockState
- The container to remove items from.inventory
- The inventory of the block state, nullable.sellInfo
- The object that was returned by the sellContainer method.