Search in sources :

Example 1 with TwoWingedItemElytraRenderer

use of com.jab125.thonkutil.impl.TwoWingedItemElytraRenderer in project ThonkUtil by LimeAppleBoat.

the class PlayerEntityMixin method initInject.

@Inject(method = "<init>", at = @At("TAIL"))
@SuppressWarnings("unchecked")
public void initInject(EntityRendererFactory.Context ctx, boolean slim, CallbackInfo ci) {
    ((LivingEntityRendererAccessor) (Object) this).callAddFeature(new ItemCapeRenderer((PlayerEntityRenderer) (Object) this, ctx.getModelLoader()));
    ((LivingEntityRendererAccessor) (Object) this).callAddFeature(new ItemElytraRenderer((PlayerEntityRenderer) (Object) this, ctx.getModelLoader()));
    ((LivingEntityRendererAccessor) (Object) this).callAddFeature(new TwoWingedItemElytraRenderer((PlayerEntityRenderer) (Object) this, ctx.getModelLoader()));
}
Also used : PlayerEntityRenderer(net.minecraft.client.render.entity.PlayerEntityRenderer) ItemCapeRenderer(com.jab125.thonkutil.impl.ItemCapeRenderer) ItemElytraRenderer(com.jab125.thonkutil.impl.ItemElytraRenderer) TwoWingedItemElytraRenderer(com.jab125.thonkutil.impl.TwoWingedItemElytraRenderer) TwoWingedItemElytraRenderer(com.jab125.thonkutil.impl.TwoWingedItemElytraRenderer) Inject(org.spongepowered.asm.mixin.injection.Inject)

Aggregations

ItemCapeRenderer (com.jab125.thonkutil.impl.ItemCapeRenderer)1 ItemElytraRenderer (com.jab125.thonkutil.impl.ItemElytraRenderer)1 TwoWingedItemElytraRenderer (com.jab125.thonkutil.impl.TwoWingedItemElytraRenderer)1 PlayerEntityRenderer (net.minecraft.client.render.entity.PlayerEntityRenderer)1 Inject (org.spongepowered.asm.mixin.injection.Inject)1