public class CustomBlockProviders extends ServiceProvider<BlockService>
The default service will be the first to process inventory events.
defaultServiceName, disabledLookup, nameLookup
Constructor and Description |
---|
CustomBlockProviders() |
Modifier and Type | Method and Description |
---|---|
PlayerInteractionListener |
getLastInteraction() |
StandardBlockService |
getStandardBlockService()
Retrieves the standard block service.
|
BlockResponse |
processInventoryClick(org.bukkit.event.inventory.InventoryClickEvent event,
ItemQuery block)
Processes the given inventory click event with every registered block service,
starting with the default block service.
|
void |
setLastInteraction(PlayerInteractionListener lastInteraction) |
containsService, enableAll, getByName, getDefaultName, getDefaultService, getEnabledServices, getRegisteredServices, isEnabled, isEnabled, register, setByName, setDefaultName, setEnabled, setEnabled, unregister, unregister
public BlockResponse processInventoryClick(org.bukkit.event.inventory.InventoryClickEvent event, ItemQuery block)
event
- - inventory click event to process.block
- - last right-clicked block.public PlayerInteractionListener getLastInteraction()
public void setLastInteraction(PlayerInteractionListener lastInteraction)
public StandardBlockService getStandardBlockService()