aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/moe/nea/firmament/mixins/custommodels/BakedModelDataHolderBuiltin.java
blob: 76300a12128427e223d564cc40384e850a92a8df (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.BakedModelExtra;
import net.minecraft.client.render.model.BakedModel;
import net.minecraft.client.render.model.BuiltinBakedModel;
import org.jetbrains.annotations.Nullable;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Unique;

@Mixin(BuiltinBakedModel.class)
public class BakedModelDataHolderBuiltin implements BakedModelExtra {

    @Unique
    private BakedModel headModel;


    @Nullable
    @Override
    public BakedModel getHeadModel_firmament() {
        return headModel;
    }

    @Override
    public void setHeadModel_firmament(@Nullable BakedModel headModel) {
        this.headModel = headModel;
    }
}