blob: 7bacf5b7b6228c171bbda340e270ed731773058f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
package dulkirmod.mixins;
import dulkirmod.config.DulkirConfig;
import net.minecraft.client.model.ModelBiped;
import net.minecraft.client.renderer.entity.layers.LayerArmorBase;
import net.minecraft.client.renderer.entity.layers.LayerRenderer;
import net.minecraft.entity.EntityLivingBase;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
@Mixin(LayerArmorBase.class)
public abstract class MixinLayerArmorBase<T extends ModelBiped> implements LayerRenderer<EntityLivingBase> {
@Inject(method = "renderGlint", at = @At("HEAD"), cancellable = true)
private void renderGlintOverride(CallbackInfo ci) {
if (DulkirConfig.INSTANCE.getCancelArmorGlint())
ci.cancel();
}
}
|