diff --git a/src/main/java/emu/grasscutter/data/GameData.java b/src/main/java/emu/grasscutter/data/GameData.java index da95b1bcc..56f420d68 100644 --- a/src/main/java/emu/grasscutter/data/GameData.java +++ b/src/main/java/emu/grasscutter/data/GameData.java @@ -98,6 +98,7 @@ public class GameData { private static final Int2ObjectMap weatherDataMap = new Int2ObjectOpenHashMap<>(); private static final Int2ObjectMap battlePassMissionDataMap = new Int2ObjectOpenHashMap<>(); private static final Int2ObjectMap battlePassRewardDataMap = new Int2ObjectOpenHashMap<>(); + private static final Int2ObjectMap cookRecipeDataMap = new Int2ObjectOpenHashMap<>(); @Getter private static final Int2ObjectMap activityDataMap = new Int2ObjectOpenHashMap<>(); @Getter private static final Int2ObjectMap activityWatcherDataMap = new Int2ObjectOpenHashMap<>(); @@ -436,4 +437,8 @@ public class GameData { public static Int2ObjectMap getBattlePassRewardDataMap() { return battlePassRewardDataMap; } + + public static Int2ObjectMap getCookRecipeDataMap() { + return cookRecipeDataMap; + } } diff --git a/src/main/java/emu/grasscutter/data/excels/CookRecipeData.java b/src/main/java/emu/grasscutter/data/excels/CookRecipeData.java new file mode 100644 index 000000000..591fb9815 --- /dev/null +++ b/src/main/java/emu/grasscutter/data/excels/CookRecipeData.java @@ -0,0 +1,50 @@ +package emu.grasscutter.data.excels; + +import java.util.List; + +import emu.grasscutter.data.GameResource; +import emu.grasscutter.data.ResourceType; +import emu.grasscutter.data.ResourceType.LoadPriority; +import emu.grasscutter.data.common.ItemParamData; +import emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam; + +@ResourceType(name = {"CookRecipeExcelConfigData.json"}, loadPriority = LoadPriority.LOW) +public class CookRecipeData extends GameResource { + private int id; + + private int rankLevel; + private boolean isDefaultUnlocked; + private int maxProficiency; + + private List qualityOutputVec; + private List inputVec; + + @Override + public int getId() { + return this.id; + } + + public int getRankLevel() { + return this.rankLevel; + } + + public boolean isDefaultUnlocked() { + return this.isDefaultUnlocked; + } + + public int getMaxProficiency() { + return this.maxProficiency; + } + + public List getQualityOutputVec() { + return this.qualityOutputVec; + } + + public List getInputVec() { + return this.inputVec; + } + + @Override + public void onLoad() { + } +}