From 2269ab23b5ba8d15252e238b327c15889b1bed06 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Sat, 24 Dec 2016 09:27:52 -0500 Subject: [PATCH] Improve documentation of the PlayerInteractEvent and PlayerInteractAtEntityEvent By: EthanZeigler --- .../org/bukkit/event/player/PlayerInteractAtEntityEvent.java | 4 ++-- .../java/org/bukkit/event/player/PlayerInteractEvent.java | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/paper-api/src/main/java/org/bukkit/event/player/PlayerInteractAtEntityEvent.java b/paper-api/src/main/java/org/bukkit/event/player/PlayerInteractAtEntityEvent.java index 15f9624a0e..de39245e19 100644 --- a/paper-api/src/main/java/org/bukkit/event/player/PlayerInteractAtEntityEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/player/PlayerInteractAtEntityEvent.java @@ -7,8 +7,8 @@ import org.bukkit.inventory.EquipmentSlot; import org.bukkit.util.Vector; /** - * Represents an event that is called when a player right clicks an entity - * with a location on the entity the was clicked. + * Represents an event that is called when a player right clicks an entity that + * also contains the location where the entity was clicked. */ public class PlayerInteractAtEntityEvent extends PlayerInteractEntityEvent { private static final HandlerList handlers = new HandlerList(); diff --git a/paper-api/src/main/java/org/bukkit/event/player/PlayerInteractEvent.java b/paper-api/src/main/java/org/bukkit/event/player/PlayerInteractEvent.java index 818b4813b5..0c841fb1fe 100644 --- a/paper-api/src/main/java/org/bukkit/event/player/PlayerInteractEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/player/PlayerInteractEvent.java @@ -11,7 +11,9 @@ import org.bukkit.event.block.Action; import org.bukkit.inventory.EquipmentSlot; /** - * Called when a player interacts with an object or air. + * Represents an event that is called when a player interacts with an object or + * air, potentially fired once for each hand. The hand can be determined using + * {@link #getHand()}. *

* This event will fire as cancelled if the vanilla behavior * is to do nothing (e.g interacting with air)