public class StandardBlockService extends java.lang.Object implements BlockService
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NAME
Name of this service.
|
Constructor and Description |
---|
StandardBlockService() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getServiceName()
Retrieves a unique string identifying this service.
|
BlockResponse |
processClickEvent(org.bukkit.event.inventory.InventoryClickEvent event,
ItemQuery block)
Called when a player has interacted with an inventory.
|
public BlockResponse processClickEvent(org.bukkit.event.inventory.InventoryClickEvent event, ItemQuery block)
BlockService
The response is only considered a success if the result is non-null and successful.
processClickEvent
in interface BlockService
event
- - the inventory event.block
- - the block the given player last right-clicked. Note that this may be any arbitrary block.public java.lang.String getServiceName()
Service
Note that this identifier must conform to an ENUM convention: upper case only, underscore for space.
A service MUST not alter its identifier once it has been registered.
getServiceName
in interface Service