File tree Expand file tree Collapse file tree
src/main/java/io/github/moulberry/repo Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ public class NEUConstants implements IReloadable {
2626 Map <@ PetId String , Map <Rarity , PetNumbers >> petNumbers ;
2727 Islands islands ;
2828 BazaarStocks bazaarStocks ;
29+ ResourcePack resourcePack ;
2930
3031 public void reload (NEURepository repository ) throws NEURepositoryException {
3132 bonuses = repository .requireFile ("constants/bonuses.json" ).json (Bonuses .class );
@@ -49,6 +50,7 @@ public void reload(NEURepository repository) throws NEURepositoryException {
4950 (bazaarFile .json (new TypeToken <List <BazaarStocks .InternalRepresentation >>() {
5051 }).stream ().collect (Collectors .toMap (BazaarStocks .InternalRepresentation ::getId , BazaarStocks .InternalRepresentation ::getStock )))
5152 : (Collections .emptyMap ()));
53+ resourcePack = repository .requireFile ("constants/resource_pack.json" ).json (ResourcePack .class );
5254 }
5355
5456
Original file line number Diff line number Diff line change 1+ package io .github .moulberry .repo .constants ;
2+
3+ import java .util .List ;
4+ import java .util .Map ;
5+
6+ import com .google .gson .annotations .SerializedName ;
7+
8+ import lombok .Value ;
9+
10+ @ Value
11+ public class ResourcePack {
12+ @ SerializedName ("item_models" )
13+ ItemModels itemModels ;
14+
15+ @ Value
16+ public static class ItemModels {
17+ List <String > removed ;
18+
19+ Map <String , String > renamed ;
20+ }
21+ }
You can’t perform that action at this time.
0 commit comments