Package etithespirit.mixin.mixins
Class InjectUsesInnerModel<T extends net.minecraft.world.entity.LivingEntity,M extends net.minecraft.client.model.HumanoidModel<T>,A extends net.minecraft.client.model.HumanoidModel<T>>
java.lang.Object
net.minecraft.client.renderer.entity.layers.RenderLayer<T,M>
etithespirit.mixin.mixins.InjectUsesInnerModel<T,M,A>
- Type Parameters:
T
- T!M
- M!A
- A!
public abstract class InjectUsesInnerModel<T extends net.minecraft.world.entity.LivingEntity,M extends net.minecraft.client.model.HumanoidModel<T>,A extends net.minecraft.client.model.HumanoidModel<T>>
extends net.minecraft.client.renderer.entity.layers.RenderLayer<T,M>
This mixin injects into the usesInnerModel value for armor items to improve armor rendering on Spirits.
This is because Spirits use a custom rendering scheme involving a terribly stitched together mess based on the vanilla UV map to lazily allow spirits to use any armor type.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
usesInnerModel$spirit
(net.minecraft.world.entity.EquipmentSlot slotType, org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable<Boolean> ci) The custom inected method.Methods inherited from class net.minecraft.client.renderer.entity.layers.RenderLayer
coloredCutoutModelCopyLayerRender, getParentModel, getTextureLocation, render, renderColoredCutoutModel
-
Method Details
-
usesInnerModel$spirit
public void usesInnerModel$spirit(net.minecraft.world.entity.EquipmentSlot slotType, org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable<Boolean> ci) The custom inected method.- Parameters:
slotType
- The slot type for the armor.ci
- Mixin callback information.
-