Package com.nftworlds.wallet.event
Class PeerToPeerPayEvent
java.lang.Object
org.bukkit.event.Event
com.nftworlds.wallet.event.PeerToPeerPayEvent
public class PeerToPeerPayEvent
extends org.bukkit.event.Event
Holds information for peer to peer transaction events
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result
-
Constructor Summary
ConstructorDescriptionPeerToPeerPayEvent
(@NotNull org.bukkit.entity.Player to, @NotNull org.bukkit.entity.Player from, @org.jetbrains.annotations.NotNull double amount, @NotNull String reason, @NotNull org.web3j.abi.datatypes.generated.Uint256 refID) -
Method Summary
Modifier and TypeMethodDescription@org.jetbrains.annotations.NotNull double
Gets the amount of $WRLD from the transaction@NotNull org.bukkit.entity.Player
getFrom()
Gets the player the payment was sent bystatic @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@NotNull org.bukkit.entity.Player
getTo()
Gets the player the payment was sent to@org.jetbrains.annotations.NotNull double
getWRLD()
Gets the amount of $WRLD from the transactionMethods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
PeerToPeerPayEvent
public PeerToPeerPayEvent(@NotNull @NotNull org.bukkit.entity.Player to, @NotNull @NotNull org.bukkit.entity.Player from, @NotNull @org.jetbrains.annotations.NotNull double amount, @NotNull @NotNull String reason, @NotNull @NotNull org.web3j.abi.datatypes.generated.Uint256 refID)
-
-
Method Details
-
getTo
@NotNull public @NotNull org.bukkit.entity.Player getTo()Gets the player the payment was sent to- Returns:
- Receiver of transaction
-
getFrom
@NotNull public @NotNull org.bukkit.entity.Player getFrom()Gets the player the payment was sent by- Returns:
- Sender of transaction
-
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
-
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()
-