diff options
author | SHsuperCM <shsupercm@gmail.com> | 2021-10-12 18:25:36 +0300 |
---|---|---|
committer | SHsuperCM <shsupercm@gmail.com> | 2021-10-15 09:50:05 +0300 |
commit | c307763ef5f8ec383f8089c4b23355363d225ed2 (patch) | |
tree | 28fc34ccf5203fa8abab3f8ede7e78fa89687e46 /src | |
parent | b324f810c5f84b6425f57d055d5d5f9bf81e2b6d (diff) | |
download | CITResewn-c307763ef5f8ec383f8089c4b23355363d225ed2.tar.gz CITResewn-c307763ef5f8ec383f8089c4b23355363d225ed2.tar.bz2 CITResewn-c307763ef5f8ec383f8089c4b23355363d225ed2.zip |
Cleanup
Diffstat (limited to 'src')
2 files changed, 7 insertions, 7 deletions
diff --git a/src/main/java/shcm/shsupercm/fabric/citresewn/mixin/citarmor/ArmorFeatureRendererMixin.java b/src/main/java/shcm/shsupercm/fabric/citresewn/mixin/citarmor/ArmorFeatureRendererMixin.java index 5028d62..72a0ade 100644 --- a/src/main/java/shcm/shsupercm/fabric/citresewn/mixin/citarmor/ArmorFeatureRendererMixin.java +++ b/src/main/java/shcm/shsupercm/fabric/citresewn/mixin/citarmor/ArmorFeatureRendererMixin.java @@ -25,8 +25,8 @@ import java.util.Map; public class ArmorFeatureRendererMixin<T extends LivingEntity, M extends BipedEntityModel<T>, A extends BipedEntityModel<T>> { private WeakReference<Map<String, Identifier>> armorTexturesCached = null; - @Inject(method = "renderArmor", cancellable = true, at = @At("HEAD")) - public void renderArmor(MatrixStack matrices, VertexConsumerProvider vertexConsumers, T entity, EquipmentSlot armorSlot, int light, A model, CallbackInfo ci) { + @Inject(method = "renderArmor", at = @At("HEAD")) + private void renderArmor(MatrixStack matrices, VertexConsumerProvider vertexConsumers, T entity, EquipmentSlot armorSlot, int light, A model, CallbackInfo ci) { if (!CITResewnConfig.INSTANCE().enabled || CITResewn.INSTANCE.activeCITs == null) return; @@ -45,7 +45,7 @@ public class ArmorFeatureRendererMixin<T extends LivingEntity, M extends BipedEn } @Inject(method = "getArmorTexture", cancellable = true, at = @At("HEAD")) - public void getArmorTexture(ArmorItem item, boolean legs, String overlay, CallbackInfoReturnable<Identifier> cir) { + private void getArmorTexture(ArmorItem item, boolean legs, String overlay, CallbackInfoReturnable<Identifier> cir) { if (armorTexturesCached == null) return; Map<String, Identifier> armorTextures = armorTexturesCached.get(); diff --git a/src/main/java/shcm/shsupercm/fabric/citresewn/mixin/citelytra/ElytraFeatureRendererMixin.java b/src/main/java/shcm/shsupercm/fabric/citresewn/mixin/citelytra/ElytraFeatureRendererMixin.java index 3728362..db2241e 100644 --- a/src/main/java/shcm/shsupercm/fabric/citresewn/mixin/citelytra/ElytraFeatureRendererMixin.java +++ b/src/main/java/shcm/shsupercm/fabric/citresewn/mixin/citelytra/ElytraFeatureRendererMixin.java @@ -25,8 +25,8 @@ public class ElytraFeatureRendererMixin { private WeakReference<ItemStack> elytraItemCached = new WeakReference<>(null); private WeakReference<LivingEntity> livingEntityCached = new WeakReference<>(null); - @Inject(method = "render", cancellable = true, at = @At("HEAD")) - public void render(MatrixStack matrixStack, VertexConsumerProvider vertexConsumerProvider, int i, LivingEntity livingEntity, float f, float g, float h, float j, float k, float l, CallbackInfo ci) { + @Inject(method = "render(Lnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/client/render/VertexConsumerProvider;ILnet/minecraft/entity/LivingEntity;FFFFFF)V", at = @At("HEAD")) + private void render(MatrixStack matrixStack, VertexConsumerProvider vertexConsumerProvider, int i, LivingEntity livingEntity, float f, float g, float h, float j, float k, float l, CallbackInfo ci) { if (!CITResewnConfig.INSTANCE().enabled || CITResewn.INSTANCE.activeCITs == null) return; @@ -39,8 +39,8 @@ public class ElytraFeatureRendererMixin { this.livingEntityCached = new WeakReference<>(livingEntity); } - @Redirect(method = "render", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/render/RenderLayer;getArmorCutoutNoCull(Lnet/minecraft/util/Identifier;)Lnet/minecraft/client/render/RenderLayer;")) - public RenderLayer getArmorCutoutNoCull(Identifier originalIdentifier) { + @Redirect(method = "render(Lnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/client/render/VertexConsumerProvider;ILnet/minecraft/entity/LivingEntity;FFFFFF)V", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/render/RenderLayer;getArmorCutoutNoCull(Lnet/minecraft/util/Identifier;)Lnet/minecraft/client/render/RenderLayer;")) + private RenderLayer getArmorCutoutNoCull(Identifier originalIdentifier) { if (!CITResewnConfig.INSTANCE().enabled || CITResewn.INSTANCE.activeCITs == null) return RenderLayer.getArmorCutoutNoCull(originalIdentifier); |