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

    Constructors
    Constructor
    Description
    PeerToPeerPayEvent(@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 Type
    Method
    Description
    @org.jetbrains.annotations.NotNull double
    Gets the amount of $WRLD from the transaction
    @NotNull org.bukkit.entity.Player
    Gets the player the payment was sent by
    static @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
    Gets the refid for the transaction
    @NotNull org.bukkit.entity.Player
    Gets the player the payment was sent to
    @org.jetbrains.annotations.NotNull double
    Gets the amount of $WRLD from the transaction

    Methods inherited from class org.bukkit.event.Event

    callEvent, getEventName, isAsynchronous

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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

      @NotNull public @NotNull String 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 class org.bukkit.event.Event
    • getHandlerList

      @NotNull public static @NotNull org.bukkit.event.HandlerList getHandlerList()