CodexMaterialData.java 661 Bytes
Newer Older
Melledy's avatar
Melledy committed
1
package emu.grasscutter.data.excels;
2
3
4
5
6
7
8
9

import emu.grasscutter.data.GameData;
import emu.grasscutter.data.GameResource;
import emu.grasscutter.data.ResourceType;

@ResourceType(name = {"MaterialCodexExcelConfigData.json"})
public class CodexMaterialData extends GameResource {
    private int Id;
Melledy's avatar
Melledy committed
10
11
    private int materialId;
    private int sortOrder;
12
13

    public int getSortOrder() {
Melledy's avatar
Melledy committed
14
        return sortOrder;
15
16
17
    }

    public int getMaterialId() {
Melledy's avatar
Melledy committed
18
        return materialId;
19
20
21
22
23
24
25
26
27
28
29
    }

    public int getId() {
        return Id;
    }

    @Override
    public void onLoad() {
        GameData.getCodexMaterialDataIdMap().put(this.getMaterialId(), this);
    }
}