Class BedrockPartyService
java.lang.Object
com.viaversion.viafabricplus.bedrock.party.BedrockPartyService
Minecraft Bedrock party REST operations. Chat uses the separate signaling connection.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final record -
Method Summary
Modifier and TypeMethodDescriptionacceptInvite(net.raphimc.minecraftauth.bedrock.BedrockAuthManager account, String partyId, String connectionString) static booleanchatConnected(net.raphimc.minecraftauth.bedrock.BedrockAuthManager account) create(net.raphimc.minecraftauth.bedrock.BedrockAuthManager account, boolean open) static @Nullable BedrockPartyService.Partycurrent(net.raphimc.minecraftauth.bedrock.BedrockAuthManager account) findJoinable(net.raphimc.minecraftauth.bedrock.BedrockAuthManager account) static CompletableFuture<Void> ignoreInvite(net.raphimc.minecraftauth.bedrock.BedrockAuthManager account, String partyId) static CompletableFuture<Void> static CompletableFuture<Void> leave(net.raphimc.minecraftauth.bedrock.BedrockAuthManager account) static List<BedrockPartyChat.Message> messages(net.raphimc.minecraftauth.bedrock.BedrockAuthManager account) static CompletableFuture<Void> refresh(net.raphimc.minecraftauth.bedrock.BedrockAuthManager account) static CompletableFuture<Void> static voidreset()static CompletableFuture<Void> setPrivacy(net.raphimc.minecraftauth.bedrock.BedrockAuthManager account, boolean open)
-
Method Details
-
current
@Nullable public static @Nullable BedrockPartyService.Party current(net.raphimc.minecraftauth.bedrock.BedrockAuthManager account) -
messages
public static List<BedrockPartyChat.Message> messages(net.raphimc.minecraftauth.bedrock.BedrockAuthManager account) -
chatConnected
public static boolean chatConnected(net.raphimc.minecraftauth.bedrock.BedrockAuthManager account) -
findJoinable
public static CompletableFuture<List<BedrockPartyService.Party>> findJoinable(net.raphimc.minecraftauth.bedrock.BedrockAuthManager account) -
create
public static CompletableFuture<BedrockPartyService.Party> create(net.raphimc.minecraftauth.bedrock.BedrockAuthManager account, boolean open) -
join
public static CompletableFuture<BedrockPartyService.Party> join(net.raphimc.minecraftauth.bedrock.BedrockAuthManager account, String partyId) -
acceptInvite
public static CompletableFuture<BedrockPartyService.Party> acceptInvite(net.raphimc.minecraftauth.bedrock.BedrockAuthManager account, String partyId, String connectionString) -
ignoreInvite
public static CompletableFuture<Void> ignoreInvite(net.raphimc.minecraftauth.bedrock.BedrockAuthManager account, String partyId) -
invite
public static CompletableFuture<Void> invite(net.raphimc.minecraftauth.bedrock.BedrockAuthManager account, String xuid) -
promote
public static CompletableFuture<Void> promote(net.raphimc.minecraftauth.bedrock.BedrockAuthManager account, String xuid) -
remove
public static CompletableFuture<Void> remove(net.raphimc.minecraftauth.bedrock.BedrockAuthManager account, String xuid) -
leave
public static CompletableFuture<Void> leave(net.raphimc.minecraftauth.bedrock.BedrockAuthManager account) -
refresh
public static CompletableFuture<BedrockPartyService.Party> refresh(net.raphimc.minecraftauth.bedrock.BedrockAuthManager account) -
setPrivacy
public static CompletableFuture<BedrockPartyService.Party> setPrivacy(net.raphimc.minecraftauth.bedrock.BedrockAuthManager account, boolean open) -
sendChat
public static CompletableFuture<Void> sendChat(net.raphimc.minecraftauth.bedrock.BedrockAuthManager account, String message) -
reset
public static void reset()
-