mirror of
https://github.com/Xiao-MoMi/Custom-Fishing.git
synced 2025-12-30 04:19:30 +00:00
btea-5
This commit is contained in:
@@ -25,6 +25,7 @@ import org.bukkit.event.player.PlayerEvent;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import java.util.Map;
|
||||
import java.util.Optional;
|
||||
|
||||
public class FishingResultEvent extends PlayerEvent implements Cancellable {
|
||||
|
||||
@@ -73,6 +74,10 @@ public class FishingResultEvent extends PlayerEvent implements Cancellable {
|
||||
return loot;
|
||||
}
|
||||
|
||||
public int getAmount() {
|
||||
return Integer.parseInt(Optional.ofNullable(getArg("{amount}")).orElse("1"));
|
||||
}
|
||||
|
||||
public enum Result {
|
||||
SUCCESS,
|
||||
FAILURE
|
||||
|
||||
@@ -26,5 +26,7 @@ public enum ActionTrigger {
|
||||
CAST,
|
||||
BITE,
|
||||
LAND,
|
||||
ACTIVATE, TIMER, INTERACT
|
||||
ACTIVATE,
|
||||
TIMER,
|
||||
INTERACT
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user