Class PlayerInteractEntityListener
java.lang.Object
dev.cwhead.GravesX.listener.integration.nexo.PlayerInteractEntityListener
- All Implemented Interfaces:
org.bukkit.event.Listener
Listens for PlayerInteractEntityEvent and cancels the event if the player interacts with an ItemFrame associated with a grave.
-
Constructor Summary
ConstructorsConstructorDescriptionPlayerInteractEntityListener
(Graves plugin, Nexo nexo) Constructs a new PlayerInteractEntityListener with the specified Graves and Nexo instances. -
Method Summary
Modifier and TypeMethodDescriptionvoid
onFurnitureInteract
(org.bukkit.event.player.PlayerInteractEntityEvent event) Handles PlayerInteractEntityEvent.
-
Constructor Details
-
PlayerInteractEntityListener
Constructs a new PlayerInteractEntityListener with the specified Graves and Nexo instances.- Parameters:
plugin
- The Graves instance to use.nexo
- The Nexo instance to use.
-
-
Method Details
-
onFurnitureInteract
public void onFurnitureInteract(org.bukkit.event.player.PlayerInteractEntityEvent event) Handles PlayerInteractEntityEvent. If the player interacts with an ItemFrame associated with a grave, it cancels the event and opens the grave for the player.- Parameters:
event
- The PlayerInteractEntityEvent to handle.
-