blob: 2bfad901e78f1be3b8e5147e2830652a4ddcc388 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
package org.bukkit.event.player;
import org.bukkit.entity.Player;
import org.bukkit.event.HandlerList;
import org.bukkit.inventory.ItemStack;
/**
* This event is fired when the player activates the riptide enchantment, using
* their trident to propel them through the air.
* <br>
* N.B. the riptide action is currently performed client side, so manipulating
* the player in this event may have undesired effects.
*/
public class PlayerRiptideEvent extends PlayerEvent {
private static final HandlerList handlers = new HandlerList();
private final ItemStack item;
public PlayerRiptideEvent(final Player who, final ItemStack item) {
super(who);
this.item = item;
}
/**
* Gets the item containing the used enchantment.
*
* @return held enchanted item
*/
public ItemStack getItem() {
return item;
}
@Override
public HandlerList getHandlers() {
return handlers;
}
public static HandlerList getHandlerList() {
return handlers;
}
}
|