aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/moe/nea/firmament/mixins/custommodels/BakedModelDataHolderBasic.java
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2024-11-01 23:00:53 +0100
committerLinnea Gräf <nea@nea.moe>2024-11-01 23:00:53 +0100
commit8b410fbdf2cffb3ceaa51bbea150f5165848bc37 (patch)
treee4b4ec4ba24a7edbefa45b7deb2503b74214ee02 /src/main/java/moe/nea/firmament/mixins/custommodels/BakedModelDataHolderBasic.java
parent653454e290a1bb6142e2bb40947239c2e450820b (diff)
downloadFirmament-8b410fbdf2cffb3ceaa51bbea150f5165848bc37.tar.gz
Firmament-8b410fbdf2cffb3ceaa51bbea150f5165848bc37.tar.bz2
Firmament-8b410fbdf2cffb3ceaa51bbea150f5165848bc37.zip
Add tint override to texture packs
Diffstat (limited to 'src/main/java/moe/nea/firmament/mixins/custommodels/BakedModelDataHolderBasic.java')
-rw-r--r--src/main/java/moe/nea/firmament/mixins/custommodels/BakedModelDataHolderBasic.java36
1 files changed, 25 insertions, 11 deletions
diff --git a/src/main/java/moe/nea/firmament/mixins/custommodels/BakedModelDataHolderBasic.java b/src/main/java/moe/nea/firmament/mixins/custommodels/BakedModelDataHolderBasic.java
index 7bf3732..3ed2177 100644
--- a/src/main/java/moe/nea/firmament/mixins/custommodels/BakedModelDataHolderBasic.java
+++ b/src/main/java/moe/nea/firmament/mixins/custommodels/BakedModelDataHolderBasic.java
@@ -2,6 +2,7 @@
package moe.nea.firmament.mixins.custommodels;
import moe.nea.firmament.features.texturepack.BakedModelExtra;
+import moe.nea.firmament.features.texturepack.TintOverrides;
import net.minecraft.client.render.model.BakedModel;
import net.minecraft.client.render.model.BasicBakedModel;
import org.jetbrains.annotations.Nullable;
@@ -11,18 +12,31 @@ import org.spongepowered.asm.mixin.Unique;
@Mixin(BasicBakedModel.class)
public class BakedModelDataHolderBasic implements BakedModelExtra {
- @Unique
- private BakedModel headModel;
+ @Unique
+ private BakedModel headModel;
+ @Unique
+ @Nullable
+ private TintOverrides tintOverrides;
- @Nullable
- @Override
- public BakedModel getHeadModel_firmament() {
- return headModel;
- }
+ @Nullable
+ @Override
+ public BakedModel getHeadModel_firmament() {
+ return headModel;
+ }
- @Override
- public void setHeadModel_firmament(@Nullable BakedModel headModel) {
- this.headModel = headModel;
- }
+ @Override
+ public void setHeadModel_firmament(@Nullable BakedModel headModel) {
+ this.headModel = headModel;
+ }
+
+ @Override
+ public @Nullable TintOverrides getTintOverrides_firmament() {
+ return tintOverrides;
+ }
+
+ @Override
+ public void setTintOverrides_firmament(@Nullable TintOverrides tintOverrides) {
+ this.tintOverrides = tintOverrides;
+ }
}