Search in sources :

Example 1 with HeadFriendFeatureRenderer

use of nomble.beebuddy.client.render.entity.feature.HeadFriendFeatureRenderer in project beebuddy by queenofthebees.

the class PlayerEntityRendererMixin method addHeadFriendFeature.

@Inject(method = "<init>(Lnet/minecraft/client/render/entity" + "/EntityRenderDispatcher;Z)V", at = @At("TAIL"))
public void addHeadFriendFeature(EntityRenderDispatcher e, boolean b, CallbackInfo cbi) {
    PlayerEntityRenderer us = (PlayerEntityRenderer) (Object) this;
    LivingEntityRendererInvoker inv = (LivingEntityRendererInvoker) (Object) this;
    inv.beebuddy$addFeature(new HeadFriendFeatureRenderer(us));
}
Also used : LivingEntityRendererInvoker(nomble.beebuddy.client.mixin.invoker.LivingEntityRendererInvoker) PlayerEntityRenderer(net.minecraft.client.render.entity.PlayerEntityRenderer) HeadFriendFeatureRenderer(nomble.beebuddy.client.render.entity.feature.HeadFriendFeatureRenderer) Inject(org.spongepowered.asm.mixin.injection.Inject)

Aggregations

PlayerEntityRenderer (net.minecraft.client.render.entity.PlayerEntityRenderer)1 LivingEntityRendererInvoker (nomble.beebuddy.client.mixin.invoker.LivingEntityRendererInvoker)1 HeadFriendFeatureRenderer (nomble.beebuddy.client.render.entity.feature.HeadFriendFeatureRenderer)1 Inject (org.spongepowered.asm.mixin.injection.Inject)1