Reformat for mapBoundSkills method.

This commit is contained in:
Ka0rX 2023-03-19 14:03:48 +01:00
parent 4244bdbe3c
commit c618b0267e
3 changed files with 5 additions and 5 deletions

View File

@ -221,10 +221,10 @@ public class PlayerData extends OfflinePlayerData implements Closable, Experienc
}
@Override
public Map<Integer, ClassSkill> mapBoundSkills() {
Map<Integer,ClassSkill> result= new HashMap<>();
public Map<Integer, String> mapBoundSkills() {
Map<Integer,String> result= new HashMap<>();
for(int slot:boundSkills.keySet())
result.put(slot,boundSkills.get(slot).getClassSkill());
result.put(slot,boundSkills.get(slot).getClassSkill().getSkill().getHandler().getId());
return result;
}

View File

@ -43,7 +43,7 @@ public interface ClassDataContainer {
Map<String, Integer> mapSkillTreePoints();
Map<Integer,ClassSkill> mapBoundSkills();
Map<Integer,String> mapBoundSkills();
Map<SkillTreeNode, Integer> getNodeLevels();

View File

@ -128,7 +128,7 @@ public class DefaultPlayerData implements ClassDataContainer {
}
@Override
public Map<Integer,ClassSkill> mapBoundSkills() {
public Map<Integer,String> mapBoundSkills() {
return new HashMap<>();
}