Interface RichPresenceContainer
- All Known Implementing Classes:
DimensionSection.Dimension,GenericSection,InitSection,JoinGameSection,MainMenuSection,MultiPlayerSection,PauseSection,RealmsGameSection,RealmsScreenSection,ReplayModEditorSection,ReplayModMenuSection,ReplayModRenderSection,RichPresenceOverrideHolder,ServerEntry,ServerListSection,SinglePlayerSection
public interface RichPresenceContainer
-
Method Summary
Modifier and TypeMethodDescriptionConvert the config to a RichPresencebooleanisActive()Is the current RPC section active, and should it be useddefault RichPresenceOverrideHolderoverrideWith(RichPresenceContainer overrideContainer) Override the values of one rich presence, with the values of another
-
Method Details
-
buildPresence
RichPresenceBuilder buildPresence()Convert the config to a RichPresence- Returns:
- A copy of
RichPresenceBuilderready to be used
-
isActive
boolean isActive()Is the current RPC section active, and should it be used- Returns:
Boolean.TRUEif enabled
-
overrideWith
Override the values of one rich presence, with the values of another- Parameters:
overrideContainer- The new rich presence that will override the old one- Returns:
- A
RichPresenceOverrideHolderthat can be overridden again with another rich presence
-