(LoadContext context, Spell spell)
| 85 | } |
| 86 | |
| 87 | @Override |
| 88 | public String[] unparse(LoadContext context, Spell spell) |
| 89 | { |
| 90 | Changes<SpellSchool> changes = context.getObjectContext().getListChanges(spell, ListKey.SPELL_SCHOOL); |
| 91 | if (changes == null || changes.isEmpty()) |
| 92 | { |
| 93 | return null; |
| 94 | } |
| 95 | StringJoiner joiner = new StringJoiner(Constants.PIPE); |
| 96 | if (changes.includesGlobalClear()) |
| 97 | { |
| 98 | joiner.add(Constants.LST_DOT_CLEAR); |
| 99 | } |
| 100 | if (changes.hasAddedItems()) |
| 101 | { |
| 102 | changes.getAdded().forEach(added -> joiner.add(added.toString())); |
| 103 | } |
| 104 | return new String[]{joiner.toString()}; |
| 105 | } |
| 106 | |
| 107 | @Override |
| 108 | public Class<Spell> getTokenClass() |
nothing calls this directly
no test coverage detected