Relicense to all rights reserved and remove third-party content #16

Merged
selimaj-dev merged 9 commits from relicense-and-cleanup into master 2026-10-09 10:27:54 +00:00
5 changed files with 33 additions and 27 deletions
Showing only changes of commit 54578534d1 - Show all commits
@@ -1,38 +1,38 @@
package org.saturnclient.cosmetics; package org.saturnclient.cosmetics;
import java.util.*;
import java.util.concurrent.CopyOnWriteArrayList;
import org.saturnclient.client.ServiceClient; import org.saturnclient.client.ServiceClient;
import org.saturnclient.client.player.SaturnPlayer; import org.saturnclient.client.player.SaturnPlayer;
import org.saturnclient.common.ref.asset.IdentifierRef; import org.saturnclient.common.ref.asset.IdentifierRef;
import java.util.*;
import java.util.concurrent.CopyOnWriteArrayList;
public class Cloaks { public class Cloaks {
public static final String[] ALL_CLOAKS = { public static final String[] ALL_CLOAKS = {
"glitch", "glitch",
"mercedes_flow", "mercedes_flow",
"crimson_mark", "crimson_mark",
"bmw", "redbull",
"amg", "redbull_plus",
"amg_petronas", "black_hole_amethyst",
"ferrari", "black_hole_flame",
"redbull", "black_hole_white",
"black_hole_amethyst", "albania_mark",
"black_hole_flame", "end",
"black_hole_white", "spanish_empire",
"albania_mark", "spain_flag",
"end", };
"spanish_empire",
"spain_flag" };
private static final String[] ANIMATED_CLOAKS = { private static final String[] ANIMATED_CLOAKS = {
"glitch", "glitch",
"black_hole_amethyst", "black_hole_amethyst",
"black_hole_flame", "black_hole_flame",
"black_hole_white" }; "black_hole_white",
};
// Written by network callbacks, read by the UI thread. // Written by network callbacks, read by the UI thread.
public static final List<String> availableCloaks = new CopyOnWriteArrayList<>(); public static final List<String> availableCloaks =
new CopyOnWriteArrayList<>();
public static void initialize() { public static void initialize() {
availableCloaks.add(0, ""); availableCloaks.add(0, "");
@@ -43,13 +43,19 @@ public class Cloaks {
* has no texture for, which would otherwise draw as the missing texture. * has no texture for, which would otherwise draw as the missing texture.
*/ */
public static IdentifierRef getCurrentCloakTexture(String cloakName) { public static IdentifierRef getCurrentCloakTexture(String cloakName) {
if (cloakName == null || !Arrays.asList(ALL_CLOAKS).contains(cloakName)) { if (
cloakName == null || !Arrays.asList(ALL_CLOAKS).contains(cloakName)
) {
return null; return null;
} }
if (Arrays.asList(ANIMATED_CLOAKS).contains(cloakName)) { if (Arrays.asList(ANIMATED_CLOAKS).contains(cloakName)) {
return IdentifierRef.ofSaturn("textures/cloaks/" + cloakName + ".gif"); return IdentifierRef.ofSaturn(
"textures/cloaks/" + cloakName + ".gif"
);
} else { } else {
return IdentifierRef.ofSaturn("textures/cloaks/" + cloakName + ".png"); return IdentifierRef.ofSaturn(
"textures/cloaks/" + cloakName + ".png"
);
} }
} }
@@ -64,4 +70,4 @@ public class Cloaks {
ServiceClient.setCloak(cloakName); ServiceClient.setCloak(cloakName);
} }
} }
} }
Binary file not shown.

Before

Width:  |  Height:  |  Size: 151 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 167 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 120 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 140 KiB