Package me.fullpage.api.events
Class CoinEvent
java.lang.Object
org.bukkit.event.Event
me.fullpage.api.events.CoinEvent
- All Implemented Interfaces:
org.bukkit.event.Cancellable
public class CoinEvent
extends org.bukkit.event.Event
implements org.bukkit.event.Cancellable
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result
-
Field Summary
Modifier and TypeFieldDescriptionprivate long
private long
private long
private org.bukkit.command.CommandSender
private static org.bukkit.event.HandlerList
private boolean
private org.bukkit.entity.Player
private CoinEvent.Types
-
Constructor Summary
ConstructorDescriptionCoinEvent(org.bukkit.command.CommandSender giver, org.bukkit.entity.Player receiver, long amount, CoinEvent.Types type, long beforeBalance, long afterBalance)
-
Method Summary
Modifier and TypeMethodDescriptionlong
long
long
org.bukkit.command.CommandSender
getGiver()
static org.bukkit.event.HandlerList
org.bukkit.event.HandlerList
org.bukkit.entity.Player
getType()
boolean
void
setCancelled(boolean b)
Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Field Details
-
handlerList
private static final org.bukkit.event.HandlerList handlerList -
isCancelled
private boolean isCancelled -
receiver
private final org.bukkit.entity.Player receiver -
giver
private final org.bukkit.command.CommandSender giver -
amount
private final long amount -
type
-
beforeBalance
private final long beforeBalance -
afterBalance
private final long afterBalance
-
-
Constructor Details
-
CoinEvent
public CoinEvent(org.bukkit.command.CommandSender giver, org.bukkit.entity.Player receiver, long amount, CoinEvent.Types type, long beforeBalance, long afterBalance)
-
-
Method Details
-
isCancelled
public boolean isCancelled()- Specified by:
isCancelled
in interfaceorg.bukkit.event.Cancellable
-
setCancelled
public void setCancelled(boolean b)- Specified by:
setCancelled
in interfaceorg.bukkit.event.Cancellable
-
getHandlers
public org.bukkit.event.HandlerList getHandlers()- Specified by:
getHandlers
in classorg.bukkit.event.Event
-
getHandlerList
public static org.bukkit.event.HandlerList getHandlerList() -
getReceiver
public org.bukkit.entity.Player getReceiver() -
getGiver
public org.bukkit.command.CommandSender getGiver() -
getAmount
public long getAmount() -
getType
-
getBeforeBalance
public long getBeforeBalance() -
getAfterBalance
public long getAfterBalance()
-