[FIX] Compile fix

This commit is contained in:
Gravita 2024-06-09 16:49:34 +07:00
parent 3afe77bf34
commit 44e840734c
No known key found for this signature in database
GPG key ID: 543A8F335C9CD633
3 changed files with 5 additions and 4 deletions

View file

@ -46,10 +46,9 @@ public UUID getUUID() {
return playerProfile.getUUID(); return playerProfile.getUUID();
} }
@SuppressWarnings("unchecked")
@Override @Override
public Map<String, Texture> getAssets() { public Map<String, Texture> getAssets() {
return (Map) playerProfile.getAssets(); return playerProfile.getAssets();
} }
@Override @Override

View file

@ -60,9 +60,10 @@ public UUID getUUID() {
return uuid; return uuid;
} }
@SuppressWarnings({"unchecked", "rawtypes"})
@Override @Override
public Map<String, Texture> getAssets() { public Map<String, pro.gravit.launcher.core.api.model.Texture> getAssets() {
return assets; return (Map) assets;
} }
@Override @Override

View file

@ -48,6 +48,7 @@ interface ClientProfileSettings {
List<ProfileFeatureAPI.OptionalMod> getEnabledOptionals(); List<ProfileFeatureAPI.OptionalMod> getEnabledOptionals();
void enableOptional(ProfileFeatureAPI.OptionalMod mod, ChangedOptionalStatusCallback callback); void enableOptional(ProfileFeatureAPI.OptionalMod mod, ChangedOptionalStatusCallback callback);
void disableOptional(ProfileFeatureAPI.OptionalMod mod, ChangedOptionalStatusCallback callback); void disableOptional(ProfileFeatureAPI.OptionalMod mod, ChangedOptionalStatusCallback callback);
ClientProfileSettings clone();
enum Flag { enum Flag {