diff options
author | md_5 <git@md-5.net> | 2018-11-18 09:32:49 +1100 |
---|---|---|
committer | md_5 <git@md-5.net> | 2018-11-18 09:32:49 +1100 |
commit | 689f15654dbcf994a9482d59066e3847cd6baf95 (patch) | |
tree | 9c3f233f173eb0c10b86a8524cfba39e9125568c /src | |
parent | 01ffd1c78c0e400445faacef46989f474aaa2330 (diff) | |
download | bukkit-689f15654dbcf994a9482d59066e3847cd6baf95.tar bukkit-689f15654dbcf994a9482d59066e3847cd6baf95.tar.gz bukkit-689f15654dbcf994a9482d59066e3847cd6baf95.tar.lz bukkit-689f15654dbcf994a9482d59066e3847cd6baf95.tar.xz bukkit-689f15654dbcf994a9482d59066e3847cd6baf95.zip |
SPIGOT-4487: Clarify PlayerInteractEvent docs
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/org/bukkit/event/player/PlayerInteractEvent.java | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/main/java/org/bukkit/event/player/PlayerInteractEvent.java b/src/main/java/org/bukkit/event/player/PlayerInteractEvent.java index 0c841fb1..fdad4cd3 100644 --- a/src/main/java/org/bukkit/event/player/PlayerInteractEvent.java +++ b/src/main/java/org/bukkit/event/player/PlayerInteractEvent.java @@ -8,6 +8,7 @@ import org.bukkit.Material; import org.bukkit.entity.Player; import org.bukkit.event.Cancellable; import org.bukkit.event.block.Action; +import org.bukkit.event.block.BlockCanBuildEvent; 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 * {@link #getHand()}. * <p> - * This event will fire as cancelled if the vanilla behavior - * is to do nothing (e.g interacting with air) + * This event will fire as cancelled if the vanilla behavior is to do nothing + * (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 { private static final HandlerList handlers = new HandlerList(); |