Class PartyDataRequestCallbackAPI

java.lang.Object
de.simonsator.partyandfriendsgui.communication.tasks.CommunicationTask
de.simonsator.partyandfriendsgui.api.datarequest.party.PartyDataRequestCallbackAPI

public class PartyDataRequestCallbackAPI
extends de.simonsator.partyandfriendsgui.communication.tasks.CommunicationTask
  • Constructor Summary

    Constructors
    Constructor Description
    PartyDataRequestCallbackAPI()  
  • Method Summary

    Modifier and Type Method Description
    void executeTask​(org.bukkit.entity.Player pPlayer, com.google.gson.JsonObject pJObj)  
    int fetchPartyData​(org.bukkit.entity.Player pPlayer, PartyDataCallBackRunnable pRunnable)  
    static PartyDataRequestCallbackAPI getInstance()  

    Methods inherited from class de.simonsator.partyandfriendsgui.communication.tasks.CommunicationTask

    isApplicable

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • PartyDataRequestCallbackAPI

      public PartyDataRequestCallbackAPI()
  • Method Details

    • getInstance

      public static PartyDataRequestCallbackAPI getInstance()
      Returns:
      Returns an instance of this class
    • fetchPartyData

      public int fetchPartyData​(org.bukkit.entity.Player pPlayer, PartyDataCallBackRunnable pRunnable)
      Parameters:
      pPlayer - The player for whom the party data should be received
      pRunnable - This runnable will be executed when the spigot server receives the party data from the bungeecord
      Returns:
      An id which can be used to identify the request later on
    • executeTask

      public void executeTask​(org.bukkit.entity.Player pPlayer, com.google.gson.JsonObject pJObj)
      Specified by:
      executeTask in class de.simonsator.partyandfriendsgui.communication.tasks.CommunicationTask