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;
import java.util.*;
import java.util.concurrent.CopyOnWriteArrayList;
import org.saturnclient.client.ServiceClient;
import org.saturnclient.client.player.SaturnPlayer;
import org.saturnclient.common.ref.asset.IdentifierRef;
import java.util.*;
import java.util.concurrent.CopyOnWriteArrayList;
public class Cloaks {
public static final String[] ALL_CLOAKS = {
"glitch",
"mercedes_flow",
"crimson_mark",
"bmw",
"amg",
"amg_petronas",
"ferrari",
"redbull",
"redbull_plus",
"black_hole_amethyst",
"black_hole_flame",
"black_hole_white",
"albania_mark",
"end",
"spanish_empire",
"spain_flag" };
"spain_flag",
};
private static final String[] ANIMATED_CLOAKS = {
"glitch",
"black_hole_amethyst",
"black_hole_flame",
"black_hole_white" };
"black_hole_white",
};
// 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() {
availableCloaks.add(0, "");
@@ -43,13 +43,19 @@ public class Cloaks {
* has no texture for, which would otherwise draw as the missing texture.
*/
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;
}
if (Arrays.asList(ANIMATED_CLOAKS).contains(cloakName)) {
return IdentifierRef.ofSaturn("textures/cloaks/" + cloakName + ".gif");
return IdentifierRef.ofSaturn(
"textures/cloaks/" + cloakName + ".gif"
);
} else {
return IdentifierRef.ofSaturn("textures/cloaks/" + cloakName + ".png");
return IdentifierRef.ofSaturn(
"textures/cloaks/" + cloakName + ".png"
);
}
}
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