mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-08-31 22:22:49 +00:00
SPIGOT-4487: Clarify PlayerInteractEvent docs
This commit is contained in:
parent
01ffd1c78c
commit
689f15654d
1 changed files with 7 additions and 2 deletions
|
@ -8,6 +8,7 @@ import org.bukkit.Material;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
import org.bukkit.event.Cancellable;
|
import org.bukkit.event.Cancellable;
|
||||||
import org.bukkit.event.block.Action;
|
import org.bukkit.event.block.Action;
|
||||||
|
import org.bukkit.event.block.BlockCanBuildEvent;
|
||||||
import org.bukkit.inventory.EquipmentSlot;
|
import org.bukkit.inventory.EquipmentSlot;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -15,8 +16,12 @@ import org.bukkit.inventory.EquipmentSlot;
|
||||||
* air, potentially fired once for each hand. The hand can be determined using
|
* air, potentially fired once for each hand. The hand can be determined using
|
||||||
* {@link #getHand()}.
|
* {@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
|
||||||
* is to do nothing (e.g interacting with air)
|
* (e.g interacting with air). For the purpose of avoiding doubt, this means
|
||||||
|
* that the event will only be in the cancelled state if it is fired as a result
|
||||||
|
* of some prediction made by the server where no subsequent code will run,
|
||||||
|
* rather than when the subsequent interaction activity (e.g. placing a block in
|
||||||
|
* an illegal position ({@link BlockCanBuildEvent}) will fail.
|
||||||
*/
|
*/
|
||||||
public class PlayerInteractEvent extends PlayerEvent implements Cancellable {
|
public class PlayerInteractEvent extends PlayerEvent implements Cancellable {
|
||||||
private static final HandlerList handlers = new HandlerList();
|
private static final HandlerList handlers = new HandlerList();
|
||||||
|
|
Loading…
Add table
Reference in a new issue