Search in sources :

Example 1 with RenderTakumiTNTPrimed

use of com.tntmodders.takumi.client.render.RenderTakumiTNTPrimed in project takumicraft by TNTModders.

the class TakumiEntityCore method renderRegister.

@SideOnly(Side.CLIENT)
private static void renderRegister() {
    RenderingRegistry.registerEntityRenderingHandler(EntityTakumiArrow.class, manager -> new RenderArrow<EntityArrow>(manager) {

        @Override
        protected ResourceLocation getEntityTexture(EntityArrow entity) {
            return new ResourceLocation(TakumiCraftCore.MODID, "textures/entity/item/carrow.png");
        }
    });
    RenderingRegistry.registerEntityRenderingHandler(EntityTakumiSnowBall.class, manager -> new RenderSnowball<>(manager, Items.SNOWBALL, Minecraft.getMinecraft().getRenderItem()));
    RenderingRegistry.registerEntityRenderingHandler(EntityTakumiExpEgg.class, manager -> new RenderSnowball<>(manager, Items.EGG, Minecraft.getMinecraft().getRenderItem()));
    RenderingRegistry.registerEntityRenderingHandler(EntityTakumiTNTPrimed.class, RenderTakumiTNTPrimed::new);
    RenderingRegistry.registerEntityRenderingHandler(EntityLlamaCreeperSpit.class, RenderLlamaCreeperSpit::new);
    RenderingRegistry.registerEntityRenderingHandler(EntityTakumiChocolateBall.class, manager -> new RenderSnowball<>(manager, TakumiItemCore.TAKUMI_CHOCO_BALL, Minecraft.getMinecraft().getRenderItem()));
    RenderingRegistry.registerEntityRenderingHandler(EntityDarkVillager.class, RenderDarkVillager::new);
    RenderingRegistry.registerEntityRenderingHandler(EntityTransHomingBomb.class, manager -> new RenderShulkerBullet(manager) {

        @Override
        public void doRender(EntityShulkerBullet entity, double x, double y, double z, float entityYaw, float partialTicks) {
        }
    });
    RenderingRegistry.registerEntityRenderingHandler(EntityAttackBlock.class, RenderAttackBlock::new);
}
Also used : EntityShulkerBullet(net.minecraft.entity.projectile.EntityShulkerBullet) EntityArrow(net.minecraft.entity.projectile.EntityArrow) RenderTakumiTNTPrimed(com.tntmodders.takumi.client.render.RenderTakumiTNTPrimed) RenderAttackBlock(com.tntmodders.takumi.client.render.RenderAttackBlock) RenderShulkerBullet(net.minecraft.client.renderer.entity.RenderShulkerBullet) RenderDarkVillager(com.tntmodders.takumi.client.render.RenderDarkVillager) RenderLlamaCreeperSpit(com.tntmodders.takumi.client.render.RenderLlamaCreeperSpit) ResourceLocation(net.minecraft.util.ResourceLocation) SideOnly(net.minecraftforge.fml.relauncher.SideOnly)

Aggregations

RenderAttackBlock (com.tntmodders.takumi.client.render.RenderAttackBlock)1 RenderDarkVillager (com.tntmodders.takumi.client.render.RenderDarkVillager)1 RenderLlamaCreeperSpit (com.tntmodders.takumi.client.render.RenderLlamaCreeperSpit)1 RenderTakumiTNTPrimed (com.tntmodders.takumi.client.render.RenderTakumiTNTPrimed)1 RenderShulkerBullet (net.minecraft.client.renderer.entity.RenderShulkerBullet)1 EntityArrow (net.minecraft.entity.projectile.EntityArrow)1 EntityShulkerBullet (net.minecraft.entity.projectile.EntityShulkerBullet)1 ResourceLocation (net.minecraft.util.ResourceLocation)1 SideOnly (net.minecraftforge.fml.relauncher.SideOnly)1