Package com.nftworlds.wallet.event
Class PlayerTransactEvent<T>
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.player.PlayerEvent
com.nftworlds.wallet.event.PlayerTransactEvent<T>
public class PlayerTransactEvent<T>
extends org.bukkit.event.player.PlayerEvent
Holds information for player transaction events
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result
-
Field Summary
Fields inherited from class org.bukkit.event.player.PlayerEvent
player
-
Constructor Summary
ConstructorDescriptionPlayerTransactEvent
(@NotNull org.bukkit.entity.Player player, double amount, @NotNull String reason, @NotNull org.web3j.abi.datatypes.generated.Uint256 refID, T payload) -
Method Summary
Modifier and TypeMethodDescription@org.jetbrains.annotations.NotNull double
Gets the amount of $WRLD from the transactionstatic @NotNull org.bukkit.event.HandlerList
@NotNull org.bukkit.event.HandlerList
@NotNull String
Gets the reason for the transaction@NotNull org.web3j.abi.datatypes.generated.Uint256
getRefID()
Gets the refid for the transaction@org.jetbrains.annotations.NotNull double
getWRLD()
Gets the amount of $WRLD from the transactionMethods inherited from class org.bukkit.event.player.PlayerEvent
getPlayer
Methods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
PlayerTransactEvent
-
-
Method Details
-
getAmount
@NotNull public @org.jetbrains.annotations.NotNull double getAmount()Gets the amount of $WRLD from the transaction- Returns:
- Amount of $WRLD
-
getWRLD
@NotNull public @org.jetbrains.annotations.NotNull double getWRLD()Gets the amount of $WRLD from the transaction- Returns:
- Amount of $WRLD
-
getReason
Gets the reason for the transaction- Returns:
- Transaction Reason
-
getRefID
@NotNull public @NotNull org.web3j.abi.datatypes.generated.Uint256 getRefID()Gets the refid for the transaction- Returns:
- Payment reference ID
-
getPayload
-
getHandlers
@NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()- Specified by:
getHandlers
in classorg.bukkit.event.Event
-
getHandlerList
@NotNull public static @NotNull org.bukkit.event.HandlerList getHandlerList()
-