13
0
geforkt von Mirrors/Paper

Improve documentation of the PlayerInteractEvent and PlayerInteractAtEntityEvent

By: EthanZeigler <ethanzeigler@gmail.com>
Dieser Commit ist enthalten in:
Bukkit/Spigot 2016-12-24 09:27:52 -05:00
Ursprung bfcdae7381
Commit 2269ab23b5
2 geänderte Dateien mit 5 neuen und 3 gelöschten Zeilen

Datei anzeigen

@ -7,8 +7,8 @@ import org.bukkit.inventory.EquipmentSlot;
import org.bukkit.util.Vector; import org.bukkit.util.Vector;
/** /**
* Represents an event that is called when a player right clicks an entity * Represents an event that is called when a player right clicks an entity that
* with a location on the entity the was clicked. * also contains the location where the entity was clicked.
*/ */
public class PlayerInteractAtEntityEvent extends PlayerInteractEntityEvent { public class PlayerInteractAtEntityEvent extends PlayerInteractEntityEvent {
private static final HandlerList handlers = new HandlerList(); private static final HandlerList handlers = new HandlerList();

Datei anzeigen

@ -11,7 +11,9 @@ import org.bukkit.event.block.Action;
import org.bukkit.inventory.EquipmentSlot; 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> * <p>
* This event will fire as cancelled if the vanilla behavior * This event will fire as cancelled if the vanilla behavior
* is to do nothing (e.g interacting with air) * is to do nothing (e.g interacting with air)