aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/moe/nea/firmament/mixins/custommodels/BakedOverrideDataHolder.java
blob: 26972b1fd97efde61125656774e29e693d6eaf22 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package moe.nea.firmament.mixins.custommodels;

import moe.nea.firmament.features.texturepack.BakedOverrideData;
import moe.nea.firmament.features.texturepack.FirmamentModelPredicate;
import net.minecraft.client.render.model.json.ModelOverrideList;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Unique;

@Mixin(ModelOverrideList.BakedOverride.class)
public class BakedOverrideDataHolder implements BakedOverrideData {

    @Unique
    private FirmamentModelPredicate[] firmamentOverrides;

    @Nullable
    @Override
    public FirmamentModelPredicate[] getFirmamentOverrides() {
        return firmamentOverrides;
    }

    @Override
    public void setFirmamentOverrides(@NotNull FirmamentModelPredicate[] overrides) {
        this.firmamentOverrides = overrides;
    }
}