Class RichPresenceEvents

java.lang.Object
com.hypherionmc.simplerpc.discord.RichPresenceEvents

public final class RichPresenceEvents extends Object
  • Method Details

    • setRPCState

      public void setRPCState(RichPresenceState state)
      Update the current state of the RPC
      Parameters:
      state - What RPCState should be shown
    • setRPCState

      public void setRPCState(RichPresenceState state, GameType type)
      Update the current RPC state, with additional game type
      Parameters:
      state - What RPCState should be shown
      type - What kind of GameType is the player in
    • setCustomRPC

      public void setCustomRPC(@Nullable @Nullable RichPresenceBuilder newPresence)
      Set your own RPC state, overriding any displayed RPC
      Parameters:
      newPresence - A fully constructed RichPresenceBuilder instance