33import java .util .Collection ;
44import java .util .LinkedHashSet ;
55import java .util .List ;
6+ import java .util .Map ;
67import java .util .Objects ;
78import java .util .Set ;
89
@@ -15,21 +16,29 @@ public class Config
1516 private String currentPreviewProviderId ;
1617 // NOTE: Default/Minecraft is always active
1718 private Set <String > activeProviderIds ;
19+ private boolean onlyLoadForSelf ;
1820 private boolean enableElytraTexture ;
21+ private AnimatedCapesHandling animatedCapesHandling = AnimatedCapesHandling .ON ;
1922 private List <CustomProviderConfig > customProviders = List .of ();
2023
2124 // Advanced/Debug options
2225 private Boolean validateProfile ;
2326 private Integer loadThrottleSuppressSec ;
27+ private Map <String , Set <Integer >> blockedProviderCapeHashes ;
28+ private Integer loadThreads ;
2429
2530 public void reset ()
2631 {
2732 this .setCurrentPreviewProviderId (null );
2833 this .setActiveProviderIds (List .of (MinecraftCapesCapeProvider .ID , OptiFineCapeProvider .ID ));
34+ this .setOnlyLoadForSelf (false );
2935 this .setEnableElytraTexture (true );
36+ this .setAnimatedCapesHandling (AnimatedCapesHandling .ON );
3037
3138 this .setValidateProfile (null );
3239 this .setLoadThrottleSuppressSec (null );
40+ this .setBlockedProviderCapeHashes (null );
41+ this .setLoadThreads (null );
3342 }
3443
3544 public static Config createDefault ()
@@ -61,6 +70,16 @@ public void setActiveProviderIds(final Collection<String> activeProviderIds)
6170 this .activeProviderIds = new LinkedHashSet <>(Objects .requireNonNull (activeProviderIds ));
6271 }
6372
73+ public boolean isOnlyLoadForSelf ()
74+ {
75+ return this .onlyLoadForSelf ;
76+ }
77+
78+ public void setOnlyLoadForSelf (final boolean onlyLoadForSelf )
79+ {
80+ this .onlyLoadForSelf = onlyLoadForSelf ;
81+ }
82+
6483 public boolean isEnableElytraTexture ()
6584 {
6685 return this .enableElytraTexture ;
@@ -71,6 +90,16 @@ public void setEnableElytraTexture(final boolean enableElytraTexture)
7190 this .enableElytraTexture = enableElytraTexture ;
7291 }
7392
93+ public AnimatedCapesHandling getAnimatedCapesHandling ()
94+ {
95+ return this .animatedCapesHandling ;
96+ }
97+
98+ public void setAnimatedCapesHandling (final AnimatedCapesHandling animatedCapesHandling )
99+ {
100+ this .animatedCapesHandling = animatedCapesHandling ;
101+ }
102+
74103 public List <CustomProviderConfig > getCustomProviders ()
75104 {
76105 return this .customProviders ;
@@ -101,5 +130,25 @@ public void setLoadThrottleSuppressSec(final Integer loadThrottleSuppressSec)
101130 this .loadThrottleSuppressSec = loadThrottleSuppressSec ;
102131 }
103132
133+ public Map <String , Set <Integer >> getBlockedProviderCapeHashes ()
134+ {
135+ return this .blockedProviderCapeHashes ;
136+ }
137+
138+ public void setBlockedProviderCapeHashes (final Map <String , Set <Integer >> blockedProviderCapeHashes )
139+ {
140+ this .blockedProviderCapeHashes = blockedProviderCapeHashes ;
141+ }
142+
143+ public Integer getLoadThreads ()
144+ {
145+ return this .loadThreads ;
146+ }
147+
148+ public void setLoadThreads (final Integer loadThreads )
149+ {
150+ this .loadThreads = loadThreads ;
151+ }
152+
104153 // endregion
105154}
0 commit comments