@Override public void preInit(FMLPreInitializationEvent evt) { IFunctionalRenderFactory.registerEntityRenderingHandler(EntityGravFallingBlock.class, RenderFallingBlock::new); IFunctionalRenderFactory.registerEntityRenderingHandler(EntityFallingTree.class, RenderFallingTree::new); IFunctionalRenderFactory.registerEntityRenderingHandler(EntityThrownWeapon.class, RenderThrownWeapon::new); RenderingRegistry.registerEntityRenderingHandler(Chicken.class, r -> new RenderAnimal(r, ModelChicken.instance = new ModelChicken(), 1F)); this.initAttacksConditions(); }
@Override public Render<EntityFallingBlock> createRenderFor(RenderManager manager) { return new RenderFallingBlock(manager); }