@@ -1,9 +1,9 @@
|
||||
package org.bukkit.event.player;
|
||||
|
||||
import org.bukkit.entity.Fish;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.Cancellable;
|
||||
import org.bukkit.entity.Entity;
|
||||
import org.bukkit.entity.FishHook;
|
||||
import org.bukkit.event.HandlerList;
|
||||
|
||||
/**
|
||||
@@ -15,9 +15,9 @@ public class PlayerFishEvent extends PlayerEvent implements Cancellable {
|
||||
private boolean cancel = false;
|
||||
private int exp;
|
||||
private final State state;
|
||||
private final Fish hookEntity;
|
||||
private final FishHook hookEntity;
|
||||
|
||||
public PlayerFishEvent(final Player player, final Entity entity, final Fish hookEntity, final State state) {
|
||||
public PlayerFishEvent(final Player player, final Entity entity, final FishHook hookEntity, final State state) {
|
||||
super(player);
|
||||
this.entity = entity;
|
||||
this.hookEntity = hookEntity;
|
||||
@@ -40,9 +40,9 @@ public class PlayerFishEvent extends PlayerEvent implements Cancellable {
|
||||
/**
|
||||
* Gets the fishing hook.
|
||||
*
|
||||
* @return Fish the entity representing the fishing hook/bobber.
|
||||
* @return the entity representing the fishing hook/bobber.
|
||||
*/
|
||||
public Fish getHook() {
|
||||
public FishHook getHook() {
|
||||
return hookEntity;
|
||||
}
|
||||
|
||||
|
||||
@@ -10,8 +10,8 @@ import org.bukkit.event.HandlerList;
|
||||
/**
|
||||
* Called when a player statistic is incremented.
|
||||
* <p>
|
||||
* This event is not called for {@link org.bukkit.Statistic#PLAY_ONE_TICK} or
|
||||
* movement based statistics.
|
||||
* This event is not called for some high frequency statistics, e.g. movement
|
||||
* based statistics.
|
||||
*
|
||||
*/
|
||||
public class PlayerStatisticIncrementEvent extends PlayerEvent implements Cancellable {
|
||||
|
||||
Reference in New Issue
Block a user