Class PlayerInteractEntityListener
java.lang.Object
com.ranull.graves.listener.integration.oraxen.PlayerInteractEntityListener
- All Implemented Interfaces:
org.bukkit.event.Listener
@Deprecated
public class PlayerInteractEntityListener
extends Object
implements org.bukkit.event.Listener
Deprecated.
Recommend Nexo as a replacement.
Listens for PlayerInteractEntityEvent and cancels the event if the player interacts with an ItemFrame associated with a grave.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPlayerInteractEntityListener
(Graves plugin, Oraxen oraxen) Deprecated.Recommend Nexo as a replacement. -
Method Summary
Modifier and TypeMethodDescriptionprivate void
handleFurnitureInteraction
(org.bukkit.event.player.PlayerInteractEntityEvent event, org.bukkit.entity.Entity entity) Deprecated.Recommend Nexo as a replacement.private boolean
isItemFrame
(org.bukkit.entity.Entity entity) Deprecated.Recommend Nexo as a replacement.void
onFurnitureInteract
(org.bukkit.event.player.PlayerInteractEntityEvent event) Deprecated.Recommend Nexo as a replacement.
-
Field Details
-
plugin
Deprecated. -
oraxen
Deprecated.
-
-
Constructor Details
-
PlayerInteractEntityListener
Deprecated.Recommend Nexo as a replacement. Constructs a new PlayerInteractEntityListener with the specified Graves and Oraxen instances.- Parameters:
plugin
- The Graves instance to use.oraxen
- The Oraxen instance to use.
-
-
Method Details
-
onFurnitureInteract
@Deprecated public void onFurnitureInteract(org.bukkit.event.player.PlayerInteractEntityEvent event) Deprecated.Recommend Nexo as a replacement. 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.
-
isItemFrame
Deprecated.Recommend Nexo as a replacement. Checks if the entity is an ItemFrame.- Parameters:
entity
- The entity to check.- Returns:
- True if the entity is an ItemFrame, false otherwise.
-
handleFurnitureInteraction
@Deprecated private void handleFurnitureInteraction(org.bukkit.event.player.PlayerInteractEntityEvent event, org.bukkit.entity.Entity entity) Deprecated.Recommend Nexo as a replacement. Handles the interaction with the furniture. If the furniture is associated with a grave, the event is cancelled and the grave is opened for the player.- Parameters:
event
- The PlayerInteractEntityEvent.entity
- The entity being interacted with.
-