Commits
md_5 authored 80ece5de932
1 1 | package org.bukkit.event.entity; |
2 2 | |
3 - | import org.bukkit.Warning; |
4 3 | import org.bukkit.block.Block; |
5 4 | import org.bukkit.block.BlockFace; |
6 5 | import org.bukkit.entity.Entity; |
7 6 | import org.bukkit.entity.Player; |
8 7 | import org.bukkit.event.Cancellable; |
9 8 | import org.bukkit.event.HandlerList; |
10 9 | import org.jetbrains.annotations.NotNull; |
11 10 | import org.jetbrains.annotations.Nullable; |
12 11 | |
13 12 | /** |
14 13 | * Triggered when a entity is created in the world by a player "placing" an item |
15 14 | * on a block. |
16 15 | * <br> |
17 16 | * Note that this event is currently only fired for four specific placements: |
18 17 | * armor stands, boats, minecarts, and end crystals. |
19 - | * |
20 - | * @deprecated draft API |
21 18 | */ |
22 - | |
23 - | false) | (
24 19 | public class EntityPlaceEvent extends EntityEvent implements Cancellable { |
25 20 | |
26 21 | private static final HandlerList handlers = new HandlerList(); |
27 22 | private boolean cancelled; |
28 23 | private final Player player; |
29 24 | private final Block block; |
30 25 | private final BlockFace blockFace; |
31 26 | |
32 27 | public EntityPlaceEvent( final Entity entity, final Player player, final Block block, final BlockFace blockFace) { |
33 28 | super(entity); |