mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-08 19:34:09 +01:00
Improve documentation of the PlayerInteractEvent and PlayerInteractAtEntityEvent
By: EthanZeigler <ethanzeigler@gmail.com>
This commit is contained in:
parent
bfcdae7381
commit
2269ab23b5
2 changed files with 5 additions and 3 deletions
|
@ -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();
|
||||
|
|
|
@ -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()}.
|
||||
* <p>
|
||||
* This event will fire as cancelled if the vanilla behavior
|
||||
* is to do nothing (e.g interacting with air)
|
||||
|
|
Loading…
Reference in a new issue