44 lines
		
	
	
	
		
			2.8 KiB
		
	
	
	
		
			Java
		
	
	
	
	
	
			
		
		
	
	
			44 lines
		
	
	
	
		
			2.8 KiB
		
	
	
	
		
			Java
		
	
	
	
	
	
| package net.minecraft.util;
 | |
| 
 | |
| import com.mojang.util.UndashedUuid;
 | |
| import java.net.URI;
 | |
| import java.util.UUID;
 | |
| import org.jetbrains.annotations.Nullable;
 | |
| 
 | |
| public class CommonLinks {
 | |
| 	public static final URI GDPR = URI.create("https://aka.ms/MinecraftGDPR");
 | |
| 	public static final URI EULA = URI.create("https://aka.ms/MinecraftEULA");
 | |
| 	public static final URI PRIVACY_STATEMENT = URI.create("http://go.microsoft.com/fwlink/?LinkId=521839");
 | |
| 	public static final URI ATTRIBUTION = URI.create("https://aka.ms/MinecraftJavaAttribution");
 | |
| 	public static final URI LICENSES = URI.create("https://aka.ms/MinecraftJavaLicenses");
 | |
| 	public static final URI BUY_MINECRAFT_JAVA = URI.create("https://aka.ms/BuyMinecraftJava");
 | |
| 	public static final URI ACCOUNT_SETTINGS = URI.create("https://aka.ms/JavaAccountSettings");
 | |
| 	public static final URI SNAPSHOT_FEEDBACK = URI.create("https://aka.ms/snapshotfeedback?ref=game");
 | |
| 	public static final URI RELEASE_FEEDBACK = URI.create("https://aka.ms/javafeedback?ref=game");
 | |
| 	public static final URI SNAPSHOT_BUGS_FEEDBACK = URI.create("https://aka.ms/snapshotbugs?ref=game");
 | |
| 	public static final URI GENERAL_HELP = URI.create("https://aka.ms/Minecraft-Support");
 | |
| 	public static final URI ACCESSIBILITY_HELP = URI.create("https://aka.ms/MinecraftJavaAccessibility");
 | |
| 	public static final URI REPORTING_HELP = URI.create("https://aka.ms/aboutjavareporting");
 | |
| 	public static final URI SUSPENSION_HELP = URI.create("https://aka.ms/mcjavamoderation");
 | |
| 	public static final URI BLOCKING_HELP = URI.create("https://aka.ms/javablocking");
 | |
| 	public static final URI SYMLINK_HELP = URI.create("https://aka.ms/MinecraftSymLinks");
 | |
| 	public static final URI START_REALMS_TRIAL = URI.create("https://aka.ms/startjavarealmstrial");
 | |
| 	public static final URI BUY_REALMS = URI.create("https://aka.ms/BuyJavaRealms");
 | |
| 	public static final URI REALMS_TERMS = URI.create("https://aka.ms/MinecraftRealmsTerms");
 | |
| 	public static final URI REALMS_CONTENT_CREATION = URI.create("https://aka.ms/MinecraftRealmsContentCreator");
 | |
| 	public static final String EXTEND_REALMS_LINK = "https://aka.ms/ExtendJavaRealms";
 | |
| 	public static final String INTENTIONAL_GAME_DESIGN_BUG_ID = "MCPE-28723";
 | |
| 	public static final URI INTENTIONAL_GAME_DESIGN_BUG = URI.create("https://bugs.mojang.com/browse/MCPE-28723");
 | |
| 
 | |
| 	public static String extendRealms(@Nullable String subscriptionId, UUID profileId, boolean isTrial) {
 | |
| 		return subscriptionId == null
 | |
| 			? "https://aka.ms/ExtendJavaRealms"
 | |
| 			: extendRealms(subscriptionId, profileId) + "&ref=" + (isTrial ? "expiredTrial" : "expiredRealm");
 | |
| 	}
 | |
| 
 | |
| 	public static String extendRealms(@Nullable String subscriptionId, UUID profileId) {
 | |
| 		return subscriptionId == null
 | |
| 			? "https://aka.ms/ExtendJavaRealms"
 | |
| 			: "https://aka.ms/ExtendJavaRealms?subscriptionId=" + subscriptionId + "&profileId=" + UndashedUuid.toString(profileId);
 | |
| 	}
 | |
| }
 |